Skip to content

redirect to /dev/null instead of '-q' option for solaris 10 or earlier #109

Merged
merged 1 commit into from Jul 29, 2013

3 participants

@uchida
uchida commented Jul 29, 2013

The /usr/bin/grep on Solaris 10 or earlier has no '-q' option, http://docs.oracle.com/cd/E26505_01/html/816-5165/grep-1.html
This pull request solve this problem with redirecting to /dev/null instead of '-q' option.

@rupa rupa merged commit a3b7898 into rupa:master Jul 29, 2013
@rupa
Owner
rupa commented Jul 29, 2013

Sure thing.

@knu
knu commented on 805f6ff Jul 30, 2013

You can use a glob match intead of calling grep(1).

[[ -n "$_Z_NO_PROMPT_COMMAND" || "$PROMPT_COMMAND" == *'_z_cmd --add '* ]]

cf. https://github.com/knu/z/blob/master/src/z.interactive.bash#L2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.