[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] non login shells
On 1 October 2010 13:10, Simon Brown <lists@xxxxxxxx> wrote:
> Hello,
>
> I'm mucking about with a NAS box and ssh and struck a problem. When I
> log-in to the box and execute a command that works as the log-in shell
> has the correct path. However when executing via ssh without logging
> in it fails as $PATH doesn't contain the right value.
>
> The box uses the ash shell, not bash and I'm struggling to add the new
> path
>
> ~/.ashrc with PATH=/new/path:$PATH is bringing no joy
>
> I'd add it to the global path, but I don't know where that is
> set. log-in variables seem to be set in /etc/profile
>
> Any help appreciated,
>
I've not got access to an ash shell to test this but have you done a
set and an export? Old shells needed you to set the value then do the
export as well.
Also, if you are using ~ in the path watchout as I've seen that not
get set on some shells in the way you would expect.
Robin
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation