On Thu, Nov 11, 2010 at 6:12 PM, Devin Teske <[email protected]> wrote: > Hi fellow hackers... I come with baring gifts! > > So, just as the subject-line says, ... here's an efficient and robust > spinner function compatible with many shells. > DONE=$( /bin/sh -c 'read -t 0 DONE; echo $DONE' )
Is this expected to be portable to other operating systems? The dash shell, used as /bin/bash in Ubuntu, does not acept the "-t" argument to the read builtin command. Using /bin/bash solves the problem. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

