Re: Spinner Function for Shell Scripts

2010-11-19 Thread Devin Teske
On Nov 19, 2010, at 7:12 AM, Christian Weisgerber wrote: > Devin Teske wrote: > 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

Re: Spinner Function for Shell Scripts

2010-11-19 Thread Christian Weisgerber
Devin Teske wrote: > >> 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 d

Re: Spinner Function for Shell Scripts

2010-11-13 Thread Devin Teske
On Nov 13, 2010, at 1:19 PM, Carlos A. M. dos Santos wrote: > On Thu, Nov 11, 2010 at 6:12 PM, Devin Teske 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. >>

Re: Spinner Function for Shell Scripts

2010-11-13 Thread Carlos A. M. dos Santos
On Thu, Nov 11, 2010 at 6:12 PM, Devin Teske 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' )

Re: Spinner Function for Shell Scripts

2010-11-11 Thread Devin Teske
On Thu, 2010-11-11 at 12:12 -0800, Devin Teske 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. > > But, before I get into the code, let me first explain that going to

Re: Spinner Function for Shell Scripts

2010-11-11 Thread Devin Teske
One-line fix for a small bug (see below). On Thu, 2010-11-11 at 12:12 -0800, Devin Teske 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. > > But, before I get into th

Spinner Function for Shell Scripts

2010-11-11 Thread Devin Teske
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. But, before I get into the code, let me first explain that going to Google and searching for "spinner shell script" results in 100+ di