PLFS coreutils checks (was Re: Updated buildscripts (v2.2.8))

Ryan.Oliver at pha.com.au Ryan.Oliver at pha.com.au
Tue Apr 22 18:31:20 PDT 2003


Erik Jan wrote:
> > Hmmm except on most linux systems /bin/sh is a symlink to bash, unless
I'm
> > missing something...
>
> yes it is, but it behaves differently when called as /bin/sh. If I give
> myself /bin/bash as shell, it gives the /root/.bashrc-error when I do su
> -c 'echo "hi"' erikjanp.

Cool

>  If I change my shell to /bin/sh, or add
> --shell=/bin/sh, it's all OK. Adding --shell=/bin/bash gives the error
> once again. My /bin/sh is a symlink to bash (tested on a very basic
> redhad 7.2)

Well, you've sold me :-) Except I'd prefer the short option

su $name -s /bin/sh -c 'command'

but thats only personal preference ;-)

Regards
Ryan


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list