File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ EXIT_STATUS = ${ "$?" }
153153// Operators
154154OPERATOR = _{
155155 AND_IF | OR_IF | DSEMI | DLESS | DGREAT | LESSAND | GREATAND | LESSGREAT | DLESSDASH | CLOBBER |
156- "," |" (" | ")" | "{" | "}" | ";" | "&" | "|" | "<" | ">"
156+ "(" | ")" | "{" | "}" | ";" | "&" | "|" | "<" | ">"
157157}
158158
159159// Reserved words
Original file line number Diff line number Diff line change @@ -1479,6 +1479,17 @@ async fn test_reserved_substring() {
14791479 . await ;
14801480}
14811481
1482+ #[ tokio:: test]
1483+ async fn test_comma_unquoted ( ) {
1484+ // Allow `,` in unquoted words
1485+ TestBuilder :: new ( )
1486+ . command ( "echo a,b,c" )
1487+ . assert_exit_code ( 0 )
1488+ . assert_stdout ( "a,b,c\n " )
1489+ . run ( )
1490+ . await ;
1491+ }
1492+
14821493#[ cfg( test) ]
14831494fn no_such_file_error_text ( ) -> & ' static str {
14841495 if cfg ! ( windows) {
You can’t perform that action at this time.
0 commit comments