[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Treatment of $( .... )
From: |
Andrews, Martin |
Subject: |
RE: Treatment of $( .... ) |
Date: |
Mon, 21 Oct 2002 10:02:49 -0400 |
I think the following will work:
Append "for i in $(DOLLAR)(ls -1) ; do ls -l $i ; done"
> -----Original Message-----
> From: David Douthitt [mailto:address@hidden
> Sent: Friday, October 18, 2002 11:14 PM
> To: address@hidden
> Subject: Treatment of $( .... )
>
>
> Using the construct $( ) inside of strings in the editfiles section
> is converted to ${ } on output to the text file. This breaks
> any ksh constructs that are used.
>
> For example, the following:
>
> Append "for i in $(ls -1) ; do ls -l $i ; done"
>
> ...would be converted to:
>
> for i in ${ls -1} ; do ls -l $i ; done
>
> ...and then ksh fails with an error.
>
> Is there some way to fix this besides using the (deprecated)
> backtick construct?
>
> Append "for i in $(ls -1) ; do ls -l $i ; done"
>
> Backtick also does not allow nesting, whereas $( ) does.