alias not working after su?
Why doesn't alias work after I su to root?
$ alias foo='echo bar' $ foo bar $ su Password: # alias foo='echo bar' # foo foo: Command not found. |
Works fine on my system. What distro and shell are you using ("echo $0" before and after the su)?
|
Good on Ubuntu 14 series also.
|
The root shell is c-shell. Not bash.
Thanks for helping me figure this out! alias foo 'echo bar' works as expected. |
Please mark as SOLVED once you have a solution.
|
All times are GMT -5. The time now is 04:02 AM. |