bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash-2.05b


From: rick alex
Subject: bash-2.05b
Date: Mon, 15 Sep 2003 00:39:46 -0500

To whom it may concern,
 My system specifications are as follows:

operating system version number:   Slackware 9 / Redhat 9
hardware: Intel Pentium 4, 512MB memory, 1.6 GHZ cpu
                    $BASH_VERSION:   bash-2.05b.0( 1 )-release

When using command substitution outside of the current directory I get an error "No such file or directory".
    example:
for i in $( ls /etc/rc.d ) ; do cat $i|grep sh ; done -------> WILL NOT WORK

for i in $( ls /etc/rc.d ) ; do echo $i ; done -------> WILL WORK

cd /etc/rc.d ; for i in $( ls ) ; do cat $i|grep sh ; done -------> WILL WORK

When using echo to output to a file in a script I get the following error "command substitution line 1 `;;` "
    example:
echo -e ' ;; ' >> /tmp/$NAME$$ -------> WILL NOT WORK

echo -e ' < this is some other section that dose the same thing ">> /tmp/$NAME$$" if I were to delete this section and input the same as above it WILL WORK >'

I understand that I used echo -e when I did not need "-e" however I can still use it in the second example and it will work. Your response is appreciated .

a fan of GNU, Rick

_________________________________________________________________
Try MSN Messenger 6.0 with integrated webcam functionality! http://www.msnmessenger-download.com/tracking/reach_webcam





reply via email to

[Prev in Thread] Current Thread [Next in Thread]