From: "H. Peter Anvin" <hpa@zytor.com>
To: Joel Becker <Joel.Becker@oracle.com>
Cc: Peter Eriksen <s022018@student.dtu.dk>, git@vger.kernel.org
Subject: Re: /bin/sh portability question
Date: Fri, 23 Sep 2005 13:00:45 -0700 [thread overview]
Message-ID: <43345EED.5060706@zytor.com> (raw)
In-Reply-To: <20050923195706.GV27375@ca-server1.us.oracle.com>
Joel Becker wrote:
> On Fri, Sep 23, 2005 at 12:48:39PM -0700, H. Peter Anvin wrote:
>
>>Peter Eriksen wrote:
>>
>>> path=$(dirname $0)
>>>...
>>> ./git.sh: syntax error at line 4: `path=$' unexpected
>>
>>I think $(foo) is required by POSIX.
>
>
> I believe that Solaris and others (AIX IIRC) have /bin/sh linked
> to /bin/ksh, and it behaves as the POSIX shell when run as /bin/ksh, but
> behaves as a much more true-to-bourne shell when run as /bin/sh.
>
But "sh" is required to be the POSIX shell (XSH page 850.)
Thus, they might have some braindamage where /usr/bin/sh is the POSIX
shell and /bin/sh is a braindead shell. Sigh.
-hpa
prev parent reply other threads:[~2005-09-23 20:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 7:50 /bin/sh portability question Peter Eriksen
2005-09-23 8:24 ` Junio C Hamano
2005-09-23 9:02 ` Sean
2005-09-23 9:02 ` Sean
2005-09-23 9:19 ` Junio C Hamano
2005-09-23 10:34 ` Sean
2005-09-23 10:34 ` Sean
2005-09-25 19:26 ` Nico -telmich- Schottelius
2005-09-25 19:36 ` Sean
2005-09-25 19:36 ` Sean
2005-09-23 9:07 ` Junio C Hamano
2005-09-23 12:17 ` Peter Eriksen
2005-09-24 1:13 ` Junio C Hamano
[not found] ` <20050924195029.GA20514@bohr.gbar.dtu.dk>
2005-09-24 21:31 ` Junio C Hamano
2005-09-24 17:35 ` Patrick Mauritz
2005-09-23 19:48 ` H. Peter Anvin
2005-09-23 19:55 ` Morten Welinder
2005-09-23 19:57 ` Joel Becker
2005-09-23 20:00 ` H. Peter Anvin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43345EED.5060706@zytor.com \
--to=hpa@zytor.com \
--cc=Joel.Becker@oracle.com \
--cc=git@vger.kernel.org \
--cc=s022018@student.dtu.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.