Jim Bancroft
2004-05-19 20:58:29 UTC
Hi everyone,
When I run the following shell script I get an "ambiguous redirect" error
message; specifically, "ambiguous redirect1", and I can't figure out why.
Here are the contents:
######################
#/bin/bash
echo "hello" >> ./test.log 2>&1
#######################
That's it. Pretty short one.
I'm using RedHat Linux, recent version, maybe a few months old.
Seems the shell doesn't like my "2>&1" for whatever reason, but when I tried
the same script on Solaris I had no problems? If you have any tips I'd be
grateful. Thanks.
-Jim
When I run the following shell script I get an "ambiguous redirect" error
message; specifically, "ambiguous redirect1", and I can't figure out why.
Here are the contents:
######################
#/bin/bash
echo "hello" >> ./test.log 2>&1
#######################
That's it. Pretty short one.
I'm using RedHat Linux, recent version, maybe a few months old.
Seems the shell doesn't like my "2>&1" for whatever reason, but when I tried
the same script on Solaris I had no problems? If you have any tips I'd be
grateful. Thanks.
-Jim