EMAIL PROTECTED]
Subject: Re: TCSH 6.13 shell script can't re-write to a file
If you use /bin/echo the problem goes away.
I can reproduce the problem with tcsh and
when using /bin/echo instead of the builtin,
I get the expected behavior.
Apparently the built-in echo function
If you use /bin/echo the problem goes away.
I can reproduce the problem with tcsh and
when using /bin/echo instead of the builtin,
I get the expected behavior.
Apparently the built-in echo functions differently.
neal
___
Do you Yahoo!?
Shop for Bac
I just tried this and had the same problem:
> echo "Hello" > Stuff
> rm -f Stuff
> echo "Goodbye" > Stuff
Stuff: Permission denied.
> ls -l Stuff
ls: Stuff: No such file or directory
> tcsh --version
tcsh 6.13.00 (Astron) 2004-05-19 (i386-intel-posix) options
8b,nls,dl,al,kan,rh,color,dspm
> uname
I have a number of CSH/TCSH shell scripts that work with text files.
In several cases I want to remove/erase a file before I start writing to it
again.
I simplified the problem to this example:
#!/usr/bin/tcsh
echo "Hello" > stuff
rm -f stuff
echo "Goodbye" > stuff
After a recent tcsh
4 matches
Mail list logo