aboutsummaryrefslogtreecommitdiff
path: root/tests/lsattr.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-01-31 21:06:42 -0600
committerRob Landley <rob@landley.net>2020-01-31 21:06:42 -0600
commitb5be0651210e8cfbd9f07b64a50dad77b504bc21 (patch)
tree7eb6f9967f98d86c2e2cd9c02c4b1e3414900d84 /tests/lsattr.test
parentf9a448aeb871aa17708d3909dfd7ad013e418126 (diff)
downloadtoybox-b5be0651210e8cfbd9f07b64a50dad77b504bc21.tar.gz
Call sed twice instead of five times.
Diffstat (limited to 'tests/lsattr.test')
-rw-r--r--tests/lsattr.test5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/lsattr.test b/tests/lsattr.test
index bbb21dcf..b31d6d85 100644
--- a/tests/lsattr.test
+++ b/tests/lsattr.test
@@ -17,10 +17,7 @@ function clean()
# the long and short forms of those.
# We also don't want to rely on chattr(1) to set a known version number or
# project number, so blank out any numbers.
- sed 's/, Encrypted//' | \
- sed 's/-E-/---/' | \
- sed 's/, Extents//' | \
- sed 's/-e-/---/' | \
+ sed 's/, Encrypted//; s/-E-/---/; s/, Extents//; s/-e-/---/' | \
sed -E 's/[0-9]+/_/g'
}