From 819ece6e9206944857057acc7a0fa732beea501a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 15 Oct 2015 08:10:08 -0700 Subject: [PATCH] tests: tweak sed expressions in rm/r-root.sh * tests/rm/r-root.sh (clean_rm_err_): Use "," as sed delimiter and mostly single quotes to avoid some escaping. Also, combine the two sed transformations into one. --- tests/rm/r-root.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/rm/r-root.sh b/tests/rm/r-root.sh index cf16239..e94286c 100755 --- a/tests/rm/r-root.sh +++ b/tests/rm/r-root.sh @@ -102,8 +102,7 @@ EOF.py # Strip that part off for the following comparison. clean_rm_err_() { - sed "s/.*rm: /rm: /; \ - s/\(rm: it is dangerous to operate recursively on\).*$/\1 '\/'/" + sed 's,.*\(rm: it is dangerous to operate recursively on\).*$,\1 '"'/'," } #------------------------------------------------------------------------------- -- 2.6.0