Add a special error message for |&

This commit is contained in:
ridiculousfish
2019-10-27 14:35:14 -07:00
parent 2a92e66902
commit 0bfd897ee0
3 changed files with 12 additions and 0 deletions

View File

@@ -24,4 +24,9 @@ cat $tmpdir/file.txt
echo noclobber &>>? $tmpdir/file.txt
#CHECKERR: {{.*}} The file {{.*}} already exists
eval "echo foo |& false"
#CHECKERR: {{.*}} |& is not valid. In fish, use &| to pipe both stdout and stderr.
#CHECKERR: echo foo |& false
#CHECKERR: ^
rm -Rf $tmpdir