Re: [PATCH] fix for command invalid identifier line number

2023-10-06 Thread Chet Ramey
On 9/26/23 6:28 PM, Grisha Levit wrote: $ bash -u <<<$'for x in $1\ndo :\ndone' bash: line 1: $1: unbound variable $ bash -u <<<$'for 1 in $_\ndo :\ndone' bash: line 3: `1': not a valid identifier Thanks for the report and patch. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

[PATCH] fix for command invalid identifier line number

2023-09-26 Thread Grisha Levit
$ bash -u <<<$'for x in $1\ndo :\ndone' bash: line 1: $1: unbound variable $ bash -u <<<$'for 1 in $_\ndo :\ndone' bash: line 3: `1': not a valid identifier --- execute_cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/execute_cmd.c b/execute_cmd.c index 73723db5..9fba2