alias ls="ls -g" error

Advertisement

shornste
Guest

alias ls="ls -g" error

If I set WinSCP to alias ls to ls -g it does not work. The reason seems to be that my shell (/usr/local/bin/tcsh) does not accept aliases with the = sign in them (i define my aliases as [alias ls 'ls -g"]) and from the logs it seems that WinSCP tries to alias ls by using the command [alias ls="ls -g"]

I have tried aliasing the command myself in my .cshrc file and it works fine. But unfortunately I also have rm, mv, cp aliased to[rm -i] etc. If I don't have winSCP remove all aliases then those commands cause deleting, copying and moving to fail.

Is there a way to edit what command winSCP issues when it is set to "alias ls to display group name?"

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Re: alias ls="ls -g" error

shornste wrote:

Is there a way to edit what command winSCP issues when it is set to "alias ls to display group name?"
No it is not possible now :-(
Have you tried to specify /bin/bash on Shell tab of login dialog?
_________________
Martin Prikryl

Reply with quote

Guest

Have you tried to specify /bin/bash on Shell tab of login dialog?
Yes, but that did not work. However, setting the shell to /usr/bin/ksh DID work.
Problem solved.
thanks!
Now that I can use it, I hope WinSCP was worth all the trouble!! :wink:

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Now that I can use it, I hope WinSCP was worth all the trouble!! :wink:
Was it?
_________________
Martin Prikryl

Reply with quote

Guest

Anonymous wrote:

Have you tried to specify /bin/bash on Shell tab of login dialog?
Yes, but that did not work. However, setting the shell to /usr/bin/ksh DID work.
Problem solved.
thanks!
Now that I can use it, I hope WinSCP was worth all the trouble!! :wink:

I tried all this stuff and it still doesn't work. :cry:

Guess I'm going to have to find something else.

Reply with quote

Advertisement

You can post new topics in this forum