NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/37493: /bin/sh exits if shift fails, but shouldn't
The following reply was made to PR bin/37493; it has been noted by GNATS.
From: Roland Illig <roland.illig%gmx.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/37493: /bin/sh exits if shift fails, but shouldn't
Date: Sun, 25 May 2008 15:16:50 +0200
Alan Barrett schrieb:
> According to another part of SUSv3, an "option or operand error"
> in a special built-in utility means that the shell must exit
>
> <http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_08_01>.
> I think that trying to shift too many parameters would fall under this
> category.
Thank you for the explanation. I think that makes the PR a false one.
I'll document this quirk in the "pkgsrc portability guide" instead.
Roland
Home |
Main Index |
Thread Index |
Old Index