Closed samay-sharma closed 9 years ago
I might have included that out of caution. It's for enabling "extended" regexes, but as far as I can tell, removing the flag altogether has no effect. I am acutely aware of differences in flags between BSD and GNU variants (grep
, sed
, make
, but sed
especially), so tested this on OS X, Ubuntu, and CentOS. But I didn't go back as far as RHEL5… I guess I must have had a newer sed
with the BSD compatibility change.
Anyways, if you could test whether removing the flag hurts anything that would be great, since it's an easy way to sidestep this issue.
Tested on Centos 5 and RHEL 5 as regressions were failing on both with -E
. On removing the -E
flag, all tests passed on both. So, I think we should be fine here.
Just for completeness, this is the new line 32 in my working launcher.sh
script.
sed -i.bak -e's/^/#/g' -e"\$a\\
I was testing
pg_shard
onRHEL 5.11
and on runningmake installcheck
, all the regression tests failed.The regression test outputs have the following message :-
sed: invalid option -- E
.On some research, it seems that not all versions for
sed
support the-E
option.GNU sed
supports-r
whileBSD sed
supports-E
. However, it seems that support for-E
has been added in later versions ofGNU sed
. I replaced-E
with-r
in thelauncher.sh
script and all the regression tests passed.Some information about the machine I ran these tests on: