Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tcsh problems

Status
Not open for further replies.

saminny

IS-IT--Management
May 11, 2010
1
0
0
US
HI,
I am having strange issues with my tcsh shell.

First, the "ln" command doesnt seem to work properly.
I have a file "target" that is pointing to "file1". I cannot access file1 but that shouldnt matter.
when I do this, ln -sf file2 target
I get permission denied that I cannot access the file1.
So I have to do this to make it work:
rm -f target; ln -sf file2 target

Second,if my command is defined in 3 lines it does not work. e.g
alias mya ' ln -sf p.sh p1; \
ln -sf p.sh p2; \
echo "Done"'
throws an error -f: Command not found..
However when i define my command in 1 or 2 lines it works. e.g. this works
alias mya ' ln -sf p.sh p1; \
alias mya ' ln -sf p.sh p1; ln -sf p.sh p2; \
echo "Done"'

What could be the reason for these strange errors? everything works in bash. Is tcsh this bad?

any help appreciated.

Karan
 
Karan,


Check the PATH and your environment variables to ensure that you have access to the command set you need.

It appears that your bash shell environment has the proper path and environment settings which is why it is working as you expect it to.


Make it a great day.


Steven
 
Is this fixed? If not, can you post an example of the ln error with an ls -l listing before you do it?

I tried to reproduce both that and the alias problem without success. Which version of tcsh are you using, and on what distribution?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top