From da60fb13dc52c7ab337157953785e1bd1bb95460 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 1 Feb 2020 22:39:09 -0600 Subject: Now that both sed instances are using -E, we don't need to call it twice. --- tests/chattr.test | 4 ++-- tests/lsattr.test | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/chattr.test b/tests/chattr.test index 2e580cfb..d7dec0bc 100755 --- a/tests/chattr.test +++ b/tests/chattr.test @@ -17,8 +17,8 @@ function clean() # inlined in the inode (N), or use indexed directories, so strip those out. # 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 -E 's/, (Encrypted|Extents|Indexed_directory|Inline_Data)//g;' | - sed -E 's/[EeIN]-/--/g; s/[0-9]+/_/g' + sed -E -e 's/, (Encrypted|Extents|Indexed_directory|Inline_Data)//g;' \ + -e 's/[EeIN]-/--/g; s/[0-9]+/_/g' } mkdir testattr diff --git a/tests/lsattr.test b/tests/lsattr.test index cadbe920..63d9ee9c 100644 --- a/tests/lsattr.test +++ b/tests/lsattr.test @@ -17,8 +17,8 @@ function clean() # inlined in the inode (N), or use indexed directories, so strip those out. # 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 -E 's/, (Encrypted|Extents|Indexed_directory|Inline_Data)//g;' | - sed -E 's/[EeIN]-/--/g; s/[0-9]+/_/g' + sed -E -e 's/, (Encrypted|Extents|Indexed_directory|Inline_Data)//g;' \ + -e 's/[EeIN]-/--/g; s/[0-9]+/_/g' } testing "file" "lsattr file | clean" "$_A file\n" "" "" -- cgit v1.2.3