A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1630 
====================================================================== 
Reported By:                mirabilos
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1630
Category:                   Base Definitions
Type:                       Clarification Requested
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       mirabilos 
Organization:               mksh 
User Reference:              
Section:                    3.10 
Page Number:                (page or range of pages) 
Line Number:                (Line or range of lines) 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2023-01-20 21:39 UTC
Last Modified:              2023-02-24 14:30 UTC
====================================================================== 
Summary:                    Alias names
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001050 Add support for the hyphen character in...
====================================================================== 

---------------------------------------------------------------------- 
 (0006175) stephane (reporter) - 2023-02-24 14:30
 https://austingroupbugs.net/view.php?id=1630#c6175 
---------------------------------------------------------------------- 
Re: https://austingroupbugs.net/view.php?id=1630#c6174

I agree it's unclear what:

> suitable for reinput to the shell

means in that context. Does that mean "reinput as a scalar variable
assignment"?

$ bash -c 'alias "a[1]=1"; alias'
alias a[1]='1'
$ bash -o posix -c 'alias "a[1]=1"; alias'
a[1]='1'
$ bash -o posix -c 'alias "*=1"; alias'
*='1'

None of that is suitable as reinput to the shell, neither as variable
assignment, neither as alias invocations as those glob characters are not
quoted; one would need to set the noglob option

zsh's is suitable as reinput as:

eval "saved_aliases=($(alias))"
alias -- $saved_aliases

Though of course that's not POSIX syntax and anyway zsh already exposes the
list of aliases in the special $aliases associative array (not in sh
emulation by default).

Another way bash is not compliant is that in:

alias a[0-9]=uname

in a directory that contains a a1=uname file, it defines a a[0-9] alias
instead of a1. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2023-01-20 21:39 mirabilos      New Issue                                    
2023-01-20 21:39 mirabilos      Name                      => mirabilos       
2023-01-20 21:39 mirabilos      Organization              => mksh            
2023-01-20 21:39 mirabilos      URL                       =>
https://austingroupbugs.net/view.php?id=1050
2023-01-20 21:39 mirabilos      Section                   => 3.10            
2023-01-20 22:30 kre            Note Added: 0006122                          
2023-01-20 22:36 kre            Note Added: 0006123                          
2023-01-20 22:38 kre            Note Edited: 0006123                         
2023-02-09 17:08 nick           Relationship added       related to 0001050  
2023-02-09 17:09 geoffclare     Project                  Online Pubs =>
1003.1(2016/18)/Issue7+TC2
2023-02-13 17:19 geoffclare     Note Added: 0006149                          
2023-02-18 20:33 mirabilos      Note Added: 0006156                          
2023-02-24 10:03 geoffclare     Note Added: 0006171                          
2023-02-24 12:24 hvd            Note Added: 0006172                          
2023-02-24 12:25 hvd            Note Edited: 0006172                         
2023-02-24 13:45 geoffclare     Note Added: 0006173                          
2023-02-24 14:05 ormaaj         Note Added: 0006174                          
2023-02-24 14:08 ormaaj         Note Edited: 0006174                         
2023-02-24 14:09 ormaaj         Note Edited: 0006174                         
2023-02-24 14:14 ormaaj         Note Edited: 0006174                         
2023-02-24 14:17 ormaaj         Note Edited: 0006174                         
2023-02-24 14:30 stephane       Note Added: 0006175                          
======================================================================


  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to