(testsuite) Make diff_env() compatible with Solaris sed.
It appears to tolerate comments only at beginning of line.
This commit is contained in:
parent
aae256d7e0
commit
ec3227366a
@ -16,10 +16,14 @@ add_comp_wordbreak_char() {
|
|||||||
# @param $3 Additional sed script
|
# @param $3 Additional sed script
|
||||||
diff_env() {
|
diff_env() {
|
||||||
diff "$1" "$2" | sed -e "
|
diff "$1" "$2" | sed -e "
|
||||||
/^[0-9,]\{1,\}[acd]/d # Remove diff line indicators
|
# Remove diff line indicators
|
||||||
/---/d # Remove diff block separators
|
/^[0-9,]\{1,\}[acd]/d
|
||||||
/[<>] _=/d # Remove underscore variable
|
# Remove diff block separators
|
||||||
/[<>] PPID=/d # Remove PPID bash variable
|
/---/d
|
||||||
|
# Remove underscore variable
|
||||||
|
/[<>] _=/d
|
||||||
|
# Remove PPID bash variable
|
||||||
|
/[<>] PPID=/d
|
||||||
$3"
|
$3"
|
||||||
} # diff_env()
|
} # diff_env()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user