MLUG: Re: [MLUG] basic Unix pipe/exit code problem
Re: [MLUG] basic Unix pipe/exit code problem
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 3 Mar 2005 18:54:09 -0600, ryan woodsmall
<EMAIL:PROTECTED> wrote:
> After thinking long and hard about this and trying a number of things
> in Bash, I simply can't find a good, easy way of doing it without using
> temp files and conditional statements.  

I sometimes feel old and wise.  Back in 1990, it was demonstrated to
me that this is a real and really dorky issue.  One of Larry Wall's
big reasons to write perl was to get around lame things like this. 
But pipes still aren't trivial even there.  Check out:

http://www.perl.com/doc/FAQs/FAQ/oldfaq-html/part5.html#Q5.16

and thereabouts for even more gory details.

> Or just forget using shell scripts and use Perl.  Despite all of the (), |, ||, && trickery I
> could think of, none of them worked like I expected them to.

This was what I decided to do.  I just didn't really want to become a
shell wizard badly enough when perl got the job done more easily. :-)

jking
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members