[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2017-03-03 Thread Austin Group Bug Tracker
The following issue has been SUBMITTED. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: ===

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-05 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-05 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-06 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-06 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Austin Group Bug Tracker
A NOTE has been added to this issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Austin Group Bug Tracker
The following issue has been set as RELATED TO issue 0001193. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To:

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-30 Thread Austin Group Bug Tracker
The following issue has been RESOLVED. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: ===

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2019-10-15 Thread Austin Group Bug Tracker
The issue 0001297 has been set as DUPLICATE OF the following issue. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigne

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2019-10-31 Thread Austin Group Bug Tracker
The following issue has a resolution that has been APPLIED. == http://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To:

[1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2024-06-11 Thread Austin Group Bug Tracker via austin-group-l at The Open Group
The following issue has been CLOSED == https://austingroupbugs.net/view.php?id=1123 == Reported By:kre Assigned To: =

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-05 Thread Robert Elz
For anyone who follows this stuff from the mailing list messages, rather than viewing the issues web page, note that I made 3 small edits to note 4070 as it was sent to the list (all inconsequentially really, but...) Two of them were to fix the range of line numbers in the third last line of the n

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-06 Thread Geoff Clare
> -- > (0004073) kre (reporter) - 2018-08-06 15:06 > http://austingroupbugs.net/view.php?id=1123#c4073 > -- > Thanks for note 4072. > > Upon reflection, the

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-06 Thread Robert Elz
Date:Mon, 6 Aug 2018 16:48:29 +0100 From:Geoff Clare Message-ID: <20180806154829.GA30598@lt2.masqnet> | For step 1 this would conflict with 2.5.2 which says that empty fields | resulting from expanding @ and * _may_ be discarded. Your suggestion | would require

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-07 Thread Geoff Clare
Robert Elz wrote, on 06 Aug 2018: > > | For step 1 this would conflict with 2.5.2 which says that empty fields > | resulting from expanding @ and * _may_ be discarded. Your suggestion > | would require them to be discarded instead of it being optional. > > Is that any different from what i

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Geoff Clare wrote, on 07 Aug 2018: > > Robert Elz wrote, on 06 Aug 2018: > > > > | For step 1 this would conflict with 2.5.2 which says that empty fields > > | resulting from expanding @ and * _may_ be discarded. Your suggestion > > | would require them to be discarded instead of it being

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 09:02:47 +0100 From:Geoff Clare Message-ID: <20180810080247.GA20183@lt2.masqnet> | The paragraph should be deleted. Unfortunately, that is not good enough.There needs to be text somewhere allowing empty fields to be removed (aside from whe

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Robert Elz wrote, on 10 Aug 2018: > > set --; A=; for x in a $A b $* c; do printf "[%s]\n" "$x"; done > > needs to produce > > [a] > [b] > [c] [...] > So, perhaps back to something more like the proposed text for > this paragraph in note 4071, but changed from "an empty

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Geoff Clare wrote, on 10 Aug 2018: > > Robert Elz wrote, on 10 Aug 2018: > > > > set --; A=; for x in a $A b $* c; do printf "[%s]\n" "$x"; done > > > > needs to produce > > > > [a] > > [b] > > [c] [...] > > A=: ; IFS=: ; for x in a $A b; do printf "[%s]\n" "$x"; done > >

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
On this issue, I have also finally realised the answer to another thing that had perplexed me for ages (not about the standard, well, perhaos a fix is required, but not all that significant) and certainly not about what the shells should, or do, produce, which is clear, but about how people speak a

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Robert Elz wrote, on 10 Aug 2018: > > For this, I'd suggest rewriting the offending paragraph of 2.6 to be: > > Tilde expansions, parameter expansions, command substitutions, > arithmetic expansions, and quote removals that occur within a single > word expand to a single field.

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 14:33:37 +0100 From:Geoff Clare Message-ID: <2018081017.GA24957@lt2.masqnet> | I don't see the need to have an intermediate fix in 1123; it will just | create extra work to edit both bugs. They will both go into the next | update to th

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Robert Elz wrote, on 10 Aug 2018: > > | I don't see the need to have an intermediate fix in 1123; it will just > | create extra work to edit both bugs. They will both go into the next > | update to the standard, whatever that is (TC3 or Issue 8). > > You are presuming that 1193 will not be

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 13:30:28 +0100 From:Geoff Clare Message-ID: <20180810123028.GA23963@lt2.masqnet> | Actually, I think the existing description of Field Splitting handles | it correctly. I disagree, but not for the reason that I think you believe... | It m

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Geoff Clare
Robert Elz wrote, on 10 Aug 2018: > > But given the way that the text is written (lines 74994-5): > > It is only field splitting or pathname expansion that can create > multiple > fields from a single word. The single exception... > > it is really hard to read it as "0 is permitted"

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 16:26:13 +0100 From:Geoff Clare Message-ID: <20180810152613.GA26492@lt2.masqnet> | Brace expansion is widely implemented, so the chance it will be rejected | is zero. I agree that something needs to be done, but it might not be 1193. To me

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 16:48:29 +0100 From:Geoff Clare Message-ID: <20180810154829.GA26874@lt2.masqnet> | Wouldn't simply changing | "multiple fields" to "multiple fields or no fields" solve it? I am sure there are many ways it could be solved. That is one, if

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-10 Thread Robert Elz
Date:Fri, 10 Aug 2018 16:48:29 +0100 From:Geoff Clare Message-ID: <20180810154829.GA26874@lt2.masqnet> | Wouldn't simply changing | "multiple fields" to "multiple fields or no fields" solve it? There was one more thing I meant to say about that solution, which I

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-15 Thread Chet Ramey
On 8/10/18 9:15 AM, Robert Elz wrote: > On this issue, I have also finally realised the answer to another thing > that had perplexed me for ages (not about the standard, well, perhaos > a fix is required, but not all that significant) and certainly not about > what the shells should, or do, produce

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-15 Thread Robert Elz
Date:Wed, 15 Aug 2018 11:52:26 -0400 From:Chet Ramey Message-ID: <15dace22-8fe3-ea87-fa7b-3ed9f2e77...@case.edu> | > Expands to the positional parameters, starting from one, initially | > producing one field for each positional parameter that is set. | | T

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-15 Thread Robert Elz
Date:Thu, 16 Aug 2018 06:16:26 +0700 From:Robert Elz Message-ID: <19788.1534374...@jinx.noi.kre.to> | when quoted "$*" was just "$1 $2 $3 ..." (I am not sure I really understood IFS | back then, or even if the first implementation used it I checked, it didn't,

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Joerg Schilling
Robert Elz wrote: > But from my first introduction to the Bourne shell (1979) I never thought > that $* or $@ meant anything different than $1 $2 $3 ... and that when > quoted "$*" was just "$1 $2 $3 ..." (I am not sure I really understood IFS > back then, or even if the first implementation used

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Robert Elz
Date:Thu, 16 Aug 2018 11:02:08 +0200 From:Joerg Schilling Message-ID: <5b753d90.jtPS/gtrnxgoklle%joerg.schill...@fokus.fraunhofer.de> | $@ has been introduced in 1986 after people discovered that $* is not useful to | forward an arg vector without modifying it.

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Joerg Schilling
Robert Elz wrote: > Date:Thu, 16 Aug 2018 11:02:08 +0200 > From:Joerg Schilling > Message-ID: > <5b753d90.jtPS/gtrnxgoklle%joerg.schill...@fokus.fraunhofer.de> > > | $@ has been introduced in 1986 after people discovered that $* is not > useful to > | forward

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Chet Ramey
On 8/16/18 6:55 AM, Joerg Schilling wrote: > I took the information from: > > https://www.in-ulm.de/~mascheck/bourne/ > > and it mentions "modern $@" `Modern "$@"' means the current expansion behavior of "$@" when there are no positional parameters. This eliminated the need for the ${1+"$@"} id

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Chet Ramey
On 8/15/18 7:16 PM, Robert Elz wrote: > That is, they existed as a way for a script to write out all the positional > parameters one after another, without knowing how many there were. > > With that view, how they should work has never been even slightly > confusing.But perhaps others learned

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Steffen Nurpmeso
Joerg Schilling wrote in <5b755811.4gvXMuw2qARTfcZr%Joerg.Schilling@foku\ s.fraunhofer.de>: |Robert Elz wrote: |> Date:Thu, 16 Aug 2018 11:02:08 +0200 |> From:Joerg Schilling |> Message-ID: <5b753d90.jtPS/GTrnxGokLLE%Joerg.Schilling@fokus.fraunho\ |> fer.de>

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-16 Thread Robert Elz
Date:Thu, 16 Aug 2018 12:55:13 +0200 From:Joerg Schilling Message-ID: <5b755811.4gvxmuw2qartfczr%joerg.schill...@fokus.fraunhofer.de> | and it mentions "modern $@" | | Maybe at that time, they changed the behavior to become useful. That might be when the "$@" w

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-20 Thread Geoff Clare
Robert Elz wrote, on 11 Aug 2018: > > | Wouldn't simply changing > | "multiple fields" to "multiple fields or no fields" solve it? > > There was one more thing I meant to say about that solution, > which I forgot originally, and then again when I last replied to this. > > If you do it this

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-24 Thread Geoff Clare
Geoff Clare wrote, on 10 Aug 2018: > > Actually, I think the existing description of Field Splitting handles > it correctly. [...] > So I think just deleting that paragraph, as bugnote 4082 currently has > it, is the right thing to do. I decided that this was worth an explicit mention in Field S

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-24 Thread Robert Elz
Date:Fri, 24 Aug 2018 10:26:06 +0100 From:Geoff Clare Message-ID: <20180824092606.GA18062@lt2.masqnet> First, wrt your previous message (earlier in the week) ... the comments of mine to which you referred were based upon an even earlier message of yours, and what I th

Re: [1003.1(2013)/Issue7+TC1 0001123]: Problematic specification of execution environment for word expansions

2018-08-24 Thread Geoff Clare
Robert Elz wrote, on 24 Aug 2018: > > | On page 2359 line 75273 section 2.6.5, change: > | > | If the value of IFS is null, no field splitting shall be performed. > | > | to: > | > | If the value of IFS is null, field splitting shall have no effect, > | except that if t