Re: $? behaviour after comsub in same command

2023-04-05 Thread Robert Elz via austin-group-l at The Open Group
Date:Wed, 5 Apr 2023 18:25:32 +0300 From:"=?UTF-8?B?T8SfdXo=?= via austin-group-l at The Open Group" Message-ID: | Outliers are ash based shells; they apply | assignments concurrently but it isn't useful at all. No we don't, to do it concurrently we'd need to

Re: $? behaviour after comsub in same command

2023-04-05 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Steffen Nurpmeso wrote in <20230405193451.u9bfz%stef...@sdaoden.eu>: |Harald van Dijk wrote in | <32a27194-a5ff-68d6-3a87-9120e34d8...@gigawatt.nl>: ||On 05/04/2023 17:44, Oğuz wrote: ||> 5 Nisan 2023 Çarşamba tarihinde Harald van Dijk > yazdı: ||> ||> I am

Re: $? behaviour after comsub in same command

2023-04-05 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Harald van Dijk wrote in <32a27194-a5ff-68d6-3a87-9120e34d8...@gigawatt.nl>: |On 05/04/2023 17:44, Oğuz wrote: |> 5 Nisan 2023 Çarşamba tarihinde Harald van Dijk > yazdı: |> |> I am not sure which other ash based shells you were looking at, |> |> /bin/sh on

Re: $? behaviour after comsub in same command

2023-04-05 Thread Harald van Dijk via austin-group-l at The Open Group
On 05/04/2023 17:44, Oğuz wrote: 5 Nisan 2023 Çarşamba tarihinde Harald van Dijk > yazdı: I am not sure which other ash based shells you were looking at, /bin/sh on NetBSD and FreeBSD Thanks. I indeed see the same results as you on a recent version of FreeBSD

Minutes of the 3rd April 2023 Teleconference

2023-04-05 Thread Andrew Josey via austin-group-l at The Open Group
All Enclosed are the minutes of the Monday meeting this week regards Andrew - Minutes of the 3rd April 2023 TeleconferenceAustin-1304 Page 1 of 1 Submitted by Andrew Josey, The Open Group. 5th April 2023 Attendees: Don Cragun, IEEE PASC OR Nick Stoughton,

Re: $? behaviour after comsub in same command

2023-04-05 Thread Oğuz via austin-group-l at The Open Group
5 Nisan 2023 Çarşamba tarihinde Harald van Dijk yazdı: > I am not sure which other ash based shells you were looking at, /bin/sh on NetBSD and FreeBSD -- Oğuz

Re: $? behaviour after comsub in same command

2023-04-05 Thread Harald van Dijk via austin-group-l at The Open Group
On 05/04/2023 16:25, Oğuz via austin-group-l at The Open Group wrote: 5 Nisan 2023 Çarşamba tarihinde Chet Ramey via austin-group-l at The Open Group > yazdı: but should it be set fron the command substitution for the assignment to c? I think

Re: $? behaviour after comsub in same command

2023-04-05 Thread Harald van Dijk via austin-group-l at The Open Group
On 05/04/2023 15:35, Chet Ramey via austin-group-l at The Open Group wrote: On 4/5/23 9:06 AM, Martijn Dekker via austin-group-l at The Open Group wrote: Consider: false || echo $(true) $? dash, mksh and yash print 1. bash, ksh93 and zsh print 0. Which is right? I believe dash, mksh,

Re: $? behaviour after comsub in same command

2023-04-05 Thread Chet Ramey via austin-group-l at The Open Group
On 4/5/23 11:25 AM, Oğuz wrote: 5 Nisan 2023 Çarşamba tarihinde Chet Ramey via austin-group-l at The Open Group mailto:austin-group-l@opengroup.org>> yazdı: but should it be set fron the command substitution for the assignment to c? I think it'd be practical, is there a reason why

Re: $? behaviour after comsub in same command

2023-04-05 Thread Oğuz via austin-group-l at The Open Group
5 Nisan 2023 Çarşamba tarihinde Chet Ramey via austin-group-l at The Open Group yazdı: > but should it > be set fron the command substitution for the assignment to c? I think it'd be practical, is there a reason why it shouldn't? And while we're at it, is there a reason why assignments in a

Re: $? behaviour after comsub in same command

2023-04-05 Thread Chet Ramey via austin-group-l at The Open Group
On 4/5/23 9:06 AM, Martijn Dekker via austin-group-l at The Open Group wrote: Consider:     false || echo $(true) $? dash, mksh and yash print 1. bash, ksh93 and zsh print 0. Which is right? A variant with slightly different semantics: (exit 8) a=4 b=$(exit 42) c=$? echo status:$? c=$c

$? behaviour after comsub in same command

2023-04-05 Thread Martijn Dekker via austin-group-l at The Open Group
Consider: false || echo $(true) $? dash, mksh and yash print 1. bash, ksh93 and zsh print 0. Which is right? My hunch says dash, mksh and yash are right, as 'true' is executed in a command substitution (a subshell) within the same command, so 'false' should still be the "most recent