|
I noticed that you have an |
Replies: 4 comments 5 replies
|
And a follow-up question: why are there multiple |
There's a specific set of built-ins that can (and need to) take assignments as suffix arguments, although the builtins implement the assignment themselves. Notably, this includes From the bash reference manual:
Consider these two cases: bash$ echo a=(1 2 3)
bash: syntax error near unexpected token `('
bash$ declare a=(1 2 3)
bash$ declare -p a
declare -a a=([0]="1" [1]="2" [2]="3")In the case of |
Where possible, the Deviations were introduced to support bash-isms, or to handle cases where PEG semantics didn't quite do the right thing. |
|
@39555 -- I definitely want to continue encouraging good questions like these. I'm going to convert this issue to a discussion in the Q&A channel? Will be a good excuse to bootstrap more activity there. If you have specific proposed changes or have identified defects/enhancements, you're of course welcome to continue filing specific tracking issues. |
There's a specific set of built-ins that can (and need to) take assignments as suffix arguments, although the builtins implement the assignment themselves. Notably, this includes
declare,local,export, et al. It's really most important for handling array assignments.From the bash reference manual:
C…