diff options
author | Zach van Rijn <me@zv.io> | 2023-04-07 15:30:09 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-04-07 15:31:05 +0000 |
commit | 8c7e0d75f52793b2a9e8e00ce630ba73ab64446d (patch) | |
tree | a5550f1dae4eed3c38171c753d9ea03fae9c6a4c /user/mksh/fix-deprecated-fgrep.patch | |
parent | 9cac24efdf56147fb6972c1c3a5b1f9dfe317acc (diff) | |
download | packages-8c7e0d75f52793b2a9e8e00ce630ba73ab64446d.tar.gz packages-8c7e0d75f52793b2a9e8e00ce630ba73ab64446d.tar.bz2 packages-8c7e0d75f52793b2a9e8e00ce630ba73ab64446d.tar.xz packages-8c7e0d75f52793b2a9e8e00ce630ba73ab64446d.zip |
user/mksh: add patch for deprecated fgrep usage. fixes #980.
Diffstat (limited to 'user/mksh/fix-deprecated-fgrep.patch')
-rw-r--r-- | user/mksh/fix-deprecated-fgrep.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/mksh/fix-deprecated-fgrep.patch b/user/mksh/fix-deprecated-fgrep.patch new file mode 100644 index 000000000..03f701f78 --- /dev/null +++ b/user/mksh/fix-deprecated-fgrep.patch @@ -0,0 +1,22 @@ +--- a/check.t ++++ b/check.t +@@ -6728,7 +6728,7 @@ + echo FNORD-7 + typeset - + echo FNORD-8 +- } | fgrep FNORD ++ } | grep -F FNORD + fnord=(42 23) + typeset -p fnord + echo FNORD-9 +@@ -8641,8 +8641,8 @@ + (echo x; exit 12) | (cat; exit 23) | (cat; exit 42) + echo 5 $? , $PIPESTATUS , ${PIPESTATUS[0]} , ${PIPESTATUS[1]} , ${PIPESTATUS[2]} , ${PIPESTATUS[3]} . + echo 6 ${PIPESTATUS[0]} . +- set | fgrep PIPESTATUS +- echo 8 $(set | fgrep PIPESTATUS) . ++ set | grep -F PIPESTATUS ++ echo 8 $(set | grep -F PIPESTATUS) . + expected-stdout: + 1 0 . + 2 0 . |