[BusyBox] ash -> do while true -> ctrl+c

Giulio Orsero giulioo at pobox.com
Wed Apr 17 08:25:06 UTC 2002


Latest cvs busybox, against uClibc or glibc 2.1.2

==== You cannot stop this with ctrl+c
#!/bin/sh
while true
do
         echo "In while true"
        sleep 1
done
====

unless you add
trap "exit 0" 2
at the top

Normal shell will exit if it gets a ctrl+c inside the loop.


-- 
giulioo at pobox.com



More information about the busybox mailing list