You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test/run shell script replaces the entire path on line 35 rather than
supplementing it. This causes the test script to fail outputting results if
some environment variables are set that alter behaviour of standard
commands and the system ones don't support the options.
What steps will reproduce the problem?
1. Install latest GNU grep using macports
2. Export GREP_OPTIONS='--exclude-dir=\.svn' (I have this in my
.bash_profile)
3. Run test/run
What is the expected output? What do you see instead?
I expect (according to installation instructions):
--- cd ../test
N known bugs; 0 unexpected bugs
I see:
grep: unrecognized option `--exclude-dir=.svn'
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
What is your $GOOS? $GOARCH?
darwin/amd64
Which revision are you sync'ed to? (hg log -l 1)
3975:b51fd2d6c160
Please provide any additional information below.
I could just change my environment variables to avoid this problem but I
feel the test script should either adjust the PATH rather than replace it, or
reset the environment to a known state.
The reason for replacing the $PATH is to make sure that "." is not
in the path and that the standard binaries are being run rather
than whatever is in people's home directories, so this is basically
working as intended.
I'll clear GREP_OPTIONS though.
by abryzak:
Attachments:
The text was updated successfully, but these errors were encountered: