Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    # usage : utility NEW_DIRECTORY -- user : I think not
    #
    trap 'cleanup' INT HUP TERM
    cleanup() { rm -rf "${mydir}" ;}
    
    # stuff
    mydir="${HOME}/$1" # but $1 is empty
    if test -z "$1"; then
        # handle; but while stuff is happening,
        # user presses Ctrl-C
    fi




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: