On Thu, Aug 04, 2005 at 03:00:49PM +1000, [EMAIL PROTECTED] wrote: > The $J substitution into the last command works fine but the $R bit, which > attempts to redirect the output to a file, does not. Bash seems to > interpret the >> bit as part of the command rather than a redirection > instruction.
Read about expansion in the bash manual. What you want to do is eval the command. e.g. #!/bin/bash output=">> /tmp/output" eval ls $output -i [EMAIL PROTECTED] http://www.gelato.unsw.edu.au
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
