my own sleep program vs the sleep command
i wrote my own sleep program and bash behaves different with it than it does with the sleep command. could it be a secret built-in command? the bash man page has no references to "sleep" whatsoever. the different behavior is when my program (named "nsleep") runs before another on one command line ("nsleep 999999;date") and ctrl-C is pressed. with my nsleep the date command is run anyway. with the standard sleep command, date is not run. bash is doing it different. what causes this? is bash getting a special signal? is bash treating sleep differently?
Code:
lt2a/forums /home/forums 2> sleep 999999;date
^C
lt2a/forums /home/forums 3> nsleep 999999;date
^CSat Dec 14 20:17:40 EST 2019
lt2a/forums /home/forums 4>
Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer
Bookmarks