On 10/8/23 7:16 PM, Martin Schulte wrote:
The following has been tested with bash 5.2.15:
- 3.7.5 Exit Status says: "All builtins return an exit status of 2 to indicate
incorrect usage, generally invalid options or missing arguments." but cd with two or
more non-optional arguments returns an
Date:Mon, 9 Oct 2023 10:35:20 -0400
From:Chet Ramey
Message-ID:
| There is surprising variance in behavior here, from a status of 2 to 1
| to 0 (dash), plus the silly ksh "substitute old for new in $PWD," which
| the NetBSD sh (!) also performs.
Yes, we do...
On Mon, 9 Oct 2023 10:35:20 -0400
Chet Ramey wrote:
> On 10/8/23 7:16 PM, Martin Schulte wrote:
>
> > The following has been tested with bash 5.2.15:
> >
> > - 3.7.5 Exit Status says: "All builtins return an exit status of 2 to
> > indicate incorrect usage, generally invalid options or missing
On 10/9/23 12:25 PM, Robert Elz wrote:
Date:Mon, 9 Oct 2023 10:35:20 -0400
From:Chet Ramey
Message-ID:
| There is surprising variance in behavior here, from a status of 2 to 1
| to 0 (dash), plus the silly ksh "substitute old for new in $PWD," which
| t
On 10/9/23 1:57 AM, Kerin Millar wrote:
Just to add that, while POSIX does not specify the behaviour of the exit builtin where its operand "is not an unsigned decimal integer or is greater than 255", it does forbid all special built-in utilities (including exit) from causing an interactive shell
On Mon, 9 Oct 2023 14:56:24 -0400
Chet Ramey wrote:
> On 10/9/23 1:57 AM, Kerin Millar wrote:
>
> > Just to add that, while POSIX does not specify the behaviour of the exit
> > builtin where its operand "is not an unsigned decimal integer or is greater
> > than 255", it does forbid all special
The bug likely got checked in earlier than 5.2.15, that's just what I
happened to be running when I ran into this.
$ declare -p BASH_VERSINFO
declare -ar BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="3"
[4]="release" [5]="x86_64-pc-cygwin")
$ bashbug
/usr/bin/bashbug: line 135: [: missing `]'
/usr
On 10/9/23 3:21 PM, Kerin Millar wrote:
I can see not exiting if the interactive shell is
in posix mode.
I don't mean to nitpick over a minor issue but bash does also report that a numeric
argument is "required", implying (at least, to my mind) that the built-in
requires a valid argument to
On 10/9/23 1:18 PM, Ti Strga wrote:
The bug likely got checked in earlier than 5.2.15, that's just what I
happened to be running when I ran into this.
Thanks, it's already been fixed in the devel branch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ar
Date:Mon, 9 Oct 2023 14:51:29 -0400
From:Chet Ramey
Message-ID:
| That's my beef, but, strictly speaking, neither do pushd/popd/dirs.
Those we have as (optional) functions only, but no-one uses
them (with the NetBSD sh) that I know of.
But they're not really in c
10 matches
Mail list logo