[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Treatment of $( .... )
From: |
David Douthitt |
Subject: |
Treatment of $( .... ) |
Date: |
Fri, 18 Oct 2002 22:13:45 -0500 |
User-agent: |
Mutt/1.4i |
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.
- Treatment of $( .... ),
David Douthitt <=