You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b78d19c
Browse filesBrowse the repository at this point in the historyBrowse files
[New] parse: support redirecting output despite noclobber (>|)
`beep >| boop` was tokenized as `>` and `|`, which reads as a redirection followed by a pipe.
`>|` (POSIX `CLOBBER`) is now a single `{ op: '>|' }`.
Since `>|` is matched first, `>||` parses as `>|` and `|` rather than `>` and `||`,
and `>|&` as `>|` and `&` rather than `>` and `|&`.
`>>|` still parses as `>>` and `|`.
`quote` accepts the new operator, and `ControlOperator['op']` includes it.
Code that looks for `>` to find output redirection must also look for `>|`.
0 commit comments