What determines the Shell used by Mercurial?
Patrick Mézard
pmezard at gmail.com
Tue Aug 24 17:21:10 UTC 2010
Le 24/08/10 16:05, Dr. Rainer Woitok a écrit :
> Mads and Others,
>
> On Tuesday, 2010-08-24 12:56:26 +0200, Mads Kiilerich wrote:
>
>> ...
>> Try to verify manually that "/bin/sh -c ~/test-hook" works.
>
> You almost got me on this one :-) Of course it works! At least when
> called from any decent shell which knows about tilde expansion. But a
> pure Bourne Shell doesn't know about that:
>
> bad$ /bin/sh
> bad$ cd $HOME
> bad$ ls -l test-hook
> -rwx------ 1 user group 20 Aug 24 15:17 test-hook
> bad$ /bin/sh -c ~/test-hook
> /bin/sh: ~/test-hook: not found
> bad$
>
> Maybe the Solaris "/bin/sh" really is a pure Bourne Shell while some
> "/bin/sh" programs under other operating systems are already "enriched"
> in one way or another. But you can hardly claim the Solaris "/bin/sh"
> to be broken.
Just for information:
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_01
But as other said already, Solaris shell may predate this document, and it does not work so it should be fixed if possible (but yes I would say Solaris shell is a bit broken :-)
--
Patrick Mézard
More information about the Mercurial
mailing list