[ale] Bash script help

Jim Seymour bluejay at speedfactory.net
Wed Aug 23 12:44:15 EDT 2006


On Tue, Aug 22, 2006 at 08:36:45AM -0400, Bj?rn Gustafsson wrote:
> >why the pipe fails.
> 
> The pipe fails because the shell only parses variables once.  When it
> expands the value of $MKCD it tokenizes it, but does not re-evaluate
> it for special characters like pipes.
> 
> You need to use "eval" when you actually execute your macro (i.e. the
> value of the variable).  So with the escaped quotes that someone else
> suggested, try calling it like this:
> 
> eval $MKCD
> 

Thanks,

That was it. This is the version that finally worked.

MKCD="mkisofs -J -R -V \"$(date '+%a %F')\" \"$TDIR$IBALL\" | cdrecord 
blank=fast driveropts=singlesession,burnfree -"

eval $MKCD

My work schedule is due to change soon and it looks like I will finally 
be able to start attending some of the ALE meetings.

Later,

Jim Seymour

-- 
I started using something better than the "standard" back when IBM
advertised OS/2 Warp on TV. As Linux matured I made the transition from
OS/2 v4 to Linux.  You don't have to accept less than you deserve.  "Use
the Power of the Penguin" Registered Linux user #316735



More information about the Ale mailing list