Randal L. Schwartz wrote:
"Andrew" == Andrew Gaffney <[EMAIL PROTECTED]> writes:


Andrew> while `/bin/true`;

Uh, what?

Execute /bin/true,
take its output
if its output is non-null, continue.

Last I checked, /bin/true outputs nothing. :)

Maybe you wanted:

        while true;
        do; ...; done

Or more commonly:

        while :; do
                ...
        done

because the ":" command is true.

It works for me. That's the way I'd seen it done when I was learning bash. I believe the while checks the return value, not the output of the command.


--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to