Thursday, March 3, 2011

[nslu2-linux] Re: Can't set alias in .profile

 

Which version do you have?
I have V2.3R63-uNSLUng-6.8-beta with buybox 0.60.4 and alias works:
# cat root/.profile
export TERM=ansi
export PATH="/opt/bin:$PATH"
alias a=alias
# a
alias a='alias'
#

Have you additional shells installed?

Regards, Roland

--- In nslu2-linux@yahoogroups.com, "jonathandkerr" <mail@...> wrote:
>
> Hi folks - I've had my slug running uNSLUng for a while now. Great tool, but I'm struggling with a could of simple things. I'm trying to set some aliases in /root/.profile...
>
> # cat /root/.profile
> #!/bin/sh
> export PATH=$PATH:/opt/user/root/scripts
> alias scripts='cd /opt/user/root/scripts'
>
>
> but when I log into the slug it tells me "-sh: alias: not found"
>
> Is this a limitation of "sh" or do I just need to install something?
>
> Thanks in advance!
>

__._,_.___
Recent Activity:
.

__,_._,___

No comments:

Post a Comment