summaryrefslogtreecommitdiff
path: root/user/mksh/fix-deprecated-fgrep.patch
blob: 03f701f784992ef9c7605f85deacf0b8062e0bd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 .