On Wednesday 10 of December 2014, Jacek Konieczny wrote: > On 10/12/14 12:46, Arkadiusz Miśkiewicz wrote: > > Maybe something like that would be better? > > > > # cat /etc/shrc.d/grep.sh > > if [ -r /etc/env.d/GREP_OPTIONS ]; then > > > > unset GREP_OPTIONS > > . /etc/env.d/GREP_OPTIONS > > if [ -n "$GREP_OPTIONS" ]; then > > > > alias grep="/bin/grep $GREP_OPTIONS" > > unset GREP_OPTIONS > > > > fi > > > > fi > > Why?
For backward compat with what we had so far. > If anybody needs custom options to any shell command he can prepare an > alias that suits him and his shell most. > > Implementing any such non-standard behaviour in the distribution is a > very bad idea. Not only we make the shell load ages to initialize > features most users don't even know about, but we may find great > fuck-ups years later, like this one: > > http://seclists.org/fulldisclosure/2014/Nov/74 Fine with me. Rel 3. > Jacek -- Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org ) _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en