Re: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2019-10-23 Thread Geoff Clare
Eric Blake  wrote, on 23 Oct 2019:
>
> On 10/23/19 9:49 AM, Geoff Clare wrote:
> >
> >The status changing to APPLIED means that the edits have now been made
> >to the troff source of the standard.
> >
> >Although that doesn't mean they are set-in-stone, we would need a good
> >reason to reopen the bug to change the resolution, and then update
> >the troff to reflect the new resolution.
> >
> >As regards removing the "" case from the example, the parenthetical
> >note after the code explains why that is there.
> 
> The proposal was not to delete the "" case, but...
> 
> >>case $dir in
> >> (/*) CDPATH= cd -P "$dir";;
> >> ("") CDPATH= cd -P "";;
> >> (*) CDPATH= cd -P "./$dir";;
> >> esac
> >>
> >>be shortened to
> >>
> >>case $dir in
> >> (/*|) CDPATH= cd -P "$dir";;
> 
> to condense two cases into one.  Except that it uses the wrong syntax; the
> correct spelling would be (/*|'') (or using more spacing, '( /* | '' )').

Ah, yes, the lack of quotes after it caused me to miss the added |.

I actually prefer that it's a separate case, since it makes it stand
out more - and the comment below it suggests that applications might
want to handle that case differently, in which case it would need to
be separate.

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



Re: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2019-10-23 Thread Eric Blake

On 10/23/19 9:49 AM, Geoff Clare wrote:

Hi Konrad.

The status changing to APPLIED means that the edits have now been made
to the troff source of the standard.

Although that doesn't mean they are set-in-stone, we would need a good
reason to reopen the bug to change the resolution, and then update
the troff to reflect the new resolution.

As regards removing the "" case from the example, the parenthetical
note after the code explains why that is there.


The proposal was not to delete the "" case, but...



case $dir in
 (/*) CDPATH= cd -P "$dir";;
 ("") CDPATH= cd -P "";;
 (*) CDPATH= cd -P "./$dir";;
 esac

be shortened to

case $dir in
 (/*|) CDPATH= cd -P "$dir";;


to condense two cases into one.  Except that it uses the wrong syntax; 
the correct spelling would be (/*|'') (or using more spacing, '( /* | '' 
)').


I don't have any qualms with condensing the example from a technical 
standpoint (if done correctly), but question whether it counts as a mere 
editorial change worth making this late in the process for this bug.



 (*) CDPATH= cd -P "./$dir";;
 esac

?

Also, from a usability perspective, I think it would be better if `-' lost its 
special meaning after `--'.  This would make the above code superfluous.


Coding that up would be at odds with existing practice, so even if we 
were to choose that way if designing from scratch, I don't think we can 
make that change now.


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.   +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




Re: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2019-10-23 Thread Geoff Clare
Hi Konrad.

The status changing to APPLIED means that the edits have now been made
to the troff source of the standard.

Although that doesn't mean they are set-in-stone, we would need a good
reason to reopen the bug to change the resolution, and then update
the troff to reflect the new resolution.

As regards removing the "" case from the example, the parenthetical
note after the code explains why that is there.

Regards,
Geoff.

Schwarz, Konrad  wrote, on 23 Oct 2019:
>
> > -Original Message-
> > From: Austin Group Bug Tracker 
> > Sent: Wednesday, October 23, 2019 3:58 PM
> > To: austin-group-l@opengroup.org
> > Subject: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"
> > 
> > 
> > The following issue has a resolution that has been APPLIED.
> > ==
> > http://austingroupbugs.net/view.php?id=1045
> 
> Could the example
> 
> case $dir in
> (/*) CDPATH= cd -P "$dir";;
> ("") CDPATH= cd -P "";;
> (*) CDPATH= cd -P "./$dir";;
> esac
> 
> be shortened to
> 
> case $dir in
> (/*|) CDPATH= cd -P "$dir";;
> (*) CDPATH= cd -P "./$dir";;
> esac
> 
> ?
> 
> Also, from a usability perspective, I think it would be better if `-' lost 
> its special meaning after `--'.  This would make the above code superfluous.
> 
> Konrad Schwarz

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



RE: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2019-10-23 Thread Schwarz, Konrad
> -Original Message-
> From: Austin Group Bug Tracker 
> Sent: Wednesday, October 23, 2019 3:58 PM
> To: austin-group-l@opengroup.org
> Subject: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"
> 
> 
> The following issue has a resolution that has been APPLIED.
> ==
> http://austingroupbugs.net/view.php?id=1045

Could the example

case $dir in
(/*) CDPATH= cd -P "$dir";;
("") CDPATH= cd -P "";;
(*) CDPATH= cd -P "./$dir";;
esac

be shortened to

case $dir in
(/*|) CDPATH= cd -P "$dir";;
(*) CDPATH= cd -P "./$dir";;
esac

?

Also, from a usability perspective, I think it would be better if `-' lost its 
special meaning after `--'.  This would make the above code superfluous.

Konrad Schwarz



[1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2019-10-23 Thread Austin Group Bug Tracker


The following issue has a resolution that has been APPLIED. 
== 
http://austingroupbugs.net/view.php?id=1045 
== 
Reported By:stephane
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1045
Category:   Shell and Utilities
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Applied
Name:   Stephane Chazelas 
Organization:
User Reference:  
Section:cd utility 
Page Number:2529 
Line Number:81569 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1045#c3749 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-04-23 15:07 UTC
Last Modified:  2019-10-23 13:57 UTC
== 
Summary:Issues with "cd -"
==
Relationships   ID  Summary
--
related to  0001047 Unspecified behaviour for cd 
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-23 15:07 stephane   New Issue
2016-04-23 15:07 stephane   Name  => Stephane Chazelas
2016-04-23 15:07 stephane   Section   => cd utility  
2016-04-23 15:07 stephane   Page Number   => 2529
2016-04-23 15:07 stephane   Line Number   => 81569   
2016-04-25 10:13 joerg  Note Added: 0003173  
2016-04-25 10:42 stephane   Note Added: 0003174  
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:48 geoffclare Note Added: 0003175  
2016-04-25 10:49 geoffclare Note Edited: 0003175 
2016-04-25 11:19 geoffclare Note Edited: 0003175 
2016-04-25 11:34 geoffclare Relationship added   related to 0001047  
2016-05-12 14:17 Vincent LefevreNote Added: 0003226  
2017-05-25 16:33 geoffclare Note Added: 0003749  
2017-05-25 16:35 geoffclare Note Edited: 0003749 
2017-05-25 16:36 geoffclare Interp Status => Pending 
2017-05-25 16:36 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1045#c3749
2017-05-25 16:36 geoffclare Status   New => Interpretation
Required
2017-05-25 16:36 geoffclare Resolution   Open => Accepted As
Marked
2017-05-25 16:36 geoffclare Tag Attached: tc3-2008   
2017-06-01 15:40 geoffclare Note Edited: 0003749 
2017-06-01 15:43 Don Cragun Note Added: 0003750  
2017-06-01 15:44 Don Cragun Note Deleted: 0003750
2017-06-02 13:34 ajosey Interp StatusPending => Proposed 
2017-06-02 13:34 ajosey Note Added: 0003752  
2017-06-10 14:14 stephane   Note Added: 0003758  
2017-06-10 17:50 stephane   Note Edited: 0003758 
2017-07-06 20:06 ajosey Interp StatusProposed => Approved
2017-07-06 20:06 ajosey Note Added: 0003808  
2019-10-23 13:57 geoffclare Status   Interpretation Required
=> Applied
==




Re: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2017-06-10 Thread SHwareSyst
In a message dated 6/10/2017 10:16:54 A.M. Eastern Daylight Time,  
nore...@msnkbrown.net writes:

(it's  not even clear if such arrays of bytes may be stored in
shell variables).  
This is allowed, clearly, but you currently have to jump through hoops  to 
make use of an arbitrary sequence when the locale is 'C' or  'POSIX', which 
is the unclear part. The shell is adding the $'...'  string form to address 
setting the values or as constants otherwise, but some  aspects of using 
them still problematic. These problems have been discussed ad  nauseam in other 
bugs so I won't elaborate. Using the values in  substitutions may have 
additional context or implementation sensitive  restrictions.

[1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2017-06-10 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1045 
== 
Reported By:stephane
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1045
Category:   Shell and Utilities
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Interpretation Required
Name:   Stephane Chazelas 
Organization:
User Reference:  
Section:cd utility 
Page Number:2529 
Line Number:81569 
Interp Status:  Proposed 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1045#c3749 
== 
Date Submitted: 2016-04-23 15:07 UTC
Last Modified:  2017-06-10 14:14 UTC
== 
Summary:Issues with "cd -"
==
Relationships   ID  Summary
--
related to  0001047 Unspecified behaviour for cd 
== 

-- 
 (0003758) stephane (reporter) - 2017-06-10 14:14
 http://austingroupbugs.net/view.php?id=1045#c3758 
-- 
Thanks. The resolution is fine to be.

About the application usage section, I'd just add a note that since a file
path can be any array of non-null bytes, the case $dir in /*) is currently
not clearly specified in the case where those bytes don't form valid
characters (it's not even clear if such arrays of bytes may be stored in
shell variables). In any case, that's something that would have to be
addressed in a separate issue. But possibly, that means that the example
above would have to be amended to have a "LC_ALL=C" read, parsed and run
before the "case" command is run.

Also, as noted on the mailing list, we may want to add similar usage
sections for the other cases where "-" is a problem (most text utilities
and more). 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-23 15:07 stephane   New Issue
2016-04-23 15:07 stephane   Name  => Stephane Chazelas
2016-04-23 15:07 stephane   Section   => cd utility  
2016-04-23 15:07 stephane   Page Number   => 2529
2016-04-23 15:07 stephane   Line Number   => 81569   
2016-04-25 10:13 joerg  Note Added: 0003173  
2016-04-25 10:42 stephane   Note Added: 0003174  
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:48 geoffclare Note Added: 0003175  
2016-04-25 10:49 geoffclare Note Edited: 0003175 
2016-04-25 11:19 geoffclare Note Edited: 0003175 
2016-04-25 11:34 geoffclare Relationship added   related to 0001047  
2016-05-12 14:17 Vincent LefevreNote Added: 0003226  
2017-05-25 16:33 geoffclare Note Added: 0003749  
2017-05-25 16:35 geoffclare Note Edited: 0003749 
2017-05-25 16:36 geoffclare Interp Status => Pending 
2017-05-25 16:36 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1045#c3749
2017-05-25 16:36 geoffclare Status   New => Interpretation
Required
2017-05-25 16:36 geoffclare Resolution   Open => Accepted As
Marked
2017-05-25 16:36 geoffclare Tag Attached: tc3-2008   
2017-06-01 15:40 geoffclare Note Edited: 0003749 
2017-06-01 15:43 Don Cragun Note Added: 0003750  
2017-06-01 15:44 Don Cragun Note Deleted: 0003750
2017-06-02 13:34 ajosey Interp StatusPending => Proposed 
2017-06-02 13:34 ajosey Note Added: 0003752  
2017-06-10 14:14 stephane   Note Added: 0003758  
==




[1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2017-06-02 Thread Austin Group Bug Tracker

The following issue has been UPDATED. 
== 
http://austingroupbugs.net/view.php?id=1045 
== 
Reported By:stephane
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1045
Category:   Shell and Utilities
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Interpretation Required
Name:   Stephane Chazelas 
Organization:
User Reference:  
Section:cd utility 
Page Number:2529 
Line Number:81569 
Interp Status:  Proposed 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1045#c3749 
== 
Date Submitted: 2016-04-23 15:07 UTC
Last Modified:  2017-06-02 13:34 UTC
== 
Summary:Issues with "cd -"
==
Relationships   ID  Summary
--
related to  0001047 Unspecified behaviour for cd 
== 

-- 
 (0003752) ajosey (manager) - 2017-06-02 13:34
 http://austingroupbugs.net/view.php?id=1045#c3752 
-- 
Interpretation proposed: 2 June 2017 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-23 15:07 stephane   New Issue
2016-04-23 15:07 stephane   Name  => Stephane Chazelas
2016-04-23 15:07 stephane   Section   => cd utility  
2016-04-23 15:07 stephane   Page Number   => 2529
2016-04-23 15:07 stephane   Line Number   => 81569   
2016-04-25 10:13 joerg  Note Added: 0003173  
2016-04-25 10:42 stephane   Note Added: 0003174  
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:48 geoffclare Note Added: 0003175  
2016-04-25 10:49 geoffclare Note Edited: 0003175 
2016-04-25 11:19 geoffclare Note Edited: 0003175 
2016-04-25 11:34 geoffclare Relationship added   related to 0001047  
2016-05-12 14:17 Vincent LefevreNote Added: 0003226  
2017-05-25 16:33 geoffclare Note Added: 0003749  
2017-05-25 16:35 geoffclare Note Edited: 0003749 
2017-05-25 16:36 geoffclare Interp Status => Pending 
2017-05-25 16:36 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1045#c3749
2017-05-25 16:36 geoffclare Status   New => Interpretation
Required
2017-05-25 16:36 geoffclare Resolution   Open => Accepted As
Marked
2017-05-25 16:36 geoffclare Tag Attached: tc3-2008   
2017-06-01 15:40 geoffclare Note Edited: 0003749 
2017-06-01 15:43 Don Cragun Note Added: 0003750  
2017-06-01 15:44 Don Cragun Note Deleted: 0003750
2017-06-02 13:34 ajosey Interp StatusPending => Proposed 
2017-06-02 13:34 ajosey Note Added: 0003752  
==




Re: [1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2017-05-26 Thread SHwareSyst
That's why it's spelled out, so people don't use the Unicode visual  
duplicate in most fonts if some engine substitutes it, as Mantis does 
sometimes.  
Probably because '/' missing from following tag closure.
 
 
In a message dated 5/26/2017 11:12:17 A.M. Eastern Daylight Time,  
stephane.chaze...@gmail.com writes:

> On  page 2562 line 82990-82993 section cd,
>  change:−When a  is  used as the
> operand, this shall be equivalent to the command:

[...]

Note that that "−" above is a "minus sign" (U+2212), not a "-"
"hyphen minus" (U+002D).




[1003.1(2013)/Issue7+TC1 0001045]: Issues with "cd -"

2017-05-25 Thread Austin Group Bug Tracker

The following issue NEEDS AN INTERPRETATION. 
== 
http://austingroupbugs.net/view.php?id=1045 
== 
Reported By:stephane
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1045
Category:   Shell and Utilities
Type:   Enhancement Request
Severity:   Editorial
Priority:   normal
Status: Interpretation Required
Name:   Stephane Chazelas 
Organization:
User Reference:  
Section:cd utility 
Page Number:2529 
Line Number:81569 
Interp Status:  Pending 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1045#c3749 
== 
Date Submitted: 2016-04-23 15:07 UTC
Last Modified:  2017-05-25 16:36 UTC
== 
Summary:Issues with "cd -"
==
Relationships   ID  Summary
--
related to  0001047 Unspecified behaviour for cd 
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-04-23 15:07 stephane   New Issue
2016-04-23 15:07 stephane   Name  => Stephane Chazelas
2016-04-23 15:07 stephane   Section   => cd utility  
2016-04-23 15:07 stephane   Page Number   => 2529
2016-04-23 15:07 stephane   Line Number   => 81569   
2016-04-25 10:13 joerg  Note Added: 0003173  
2016-04-25 10:42 stephane   Note Added: 0003174  
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:47 stephane   Note Edited: 0003174 
2016-04-25 10:48 geoffclare Note Added: 0003175  
2016-04-25 10:49 geoffclare Note Edited: 0003175 
2016-04-25 11:19 geoffclare Note Edited: 0003175 
2016-04-25 11:34 geoffclare Relationship added   related to 0001047  
2016-05-12 14:17 Vincent LefevreNote Added: 0003226  
2017-05-25 16:33 geoffclare Note Added: 0003749  
2017-05-25 16:35 geoffclare Note Edited: 0003749 
2017-05-25 16:36 geoffclare Interp Status => Pending 
2017-05-25 16:36 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1045#c3749
2017-05-25 16:36 geoffclare Status   New => Interpretation
Required
2017-05-25 16:36 geoffclare Resolution   Open => Accepted As
Marked
==