2009/9/19 Ishwor <[email protected]>

> HI
>
> > If you check the bash manpage $$ will not give you the subshell - at
> least
> > when using ().
> > The 3rd read may occur, but the loop won't run because that read fails so
> f
> > is not blanked afaict.
> > Rodolfo, when you did set -x, your output was different to mine.
>
> set -x turns on echo'ing; set +x does the opposite.  I'd thought the
> goal was to print foo|bar|baz but nevermind ;-D
>
>
The string being piped is an extended regular expression which I wanted to
prepend with a file path, so I wasn't actually printing.  I just isolated
the problem down to that particular example.
Since it is a cli utility I thought I could do it in shell rather than
breaking out the big guns like ruby or perl... and that's how the story
begins...

whoa, way past my bedtime
Cheers,
Daniel
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to