-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v1.1] add &>>foo as a shorthand for >>foo 2>&1 (re: 921bbca)
This is the 'append' variant of &>. It is very simple to add with a little code in the lexer (lex.c); all we need to do is xor SYMREP into the token to signify that the > is repeated. The parser will then do the right thing without modification. &>> msut be disabled in the POSIX compatibility mode for the same reason as &> because, POSIXly, somecommand &>>somefile is the same as somecommand & >>somefile so it's a syntactical incompatibility. It's not one that's likely to cause problems in real-life scripts, but better safe than sorry.
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters