Quote:
Originally Posted by _ZeD_
does it works for you? It seems the alias is ignored...
|
No, it doesn't. Unfortunately, my previous reply was not adequate. My apologies.
As bormant explains, aliases are not inherited in subshells. As an alternative solution, it's possible to use a slackpkg external function just to set the desired options for grep. For instance, create a file called
/usr/libexec/slackpkg/functions.d/grep_options.sh and make it executable.
This file would only contain one line:
Code:
export GREP_OPTIONS="-i"
Unlike a global exported function, a slackpkg function would only be available to slackpkg itself, in case you need to use grep without the "-i" option in the command line or from another script.