i usually have the following simple alias in my bashrc:
alias g="grep --color=always --exclude-dir=\*.svn\*"
but now i have to work on systems that only have GNU grep 2.5, hence no
now i need something like this to work:
alias g="grep --color=always $1 $2 | grep -v .svn"
but of course, the arguments get appended to the end of the alias. $1 and $2 are parsed when the alias is created not when it's called, even with strong quotes.
Can i solve that without resorting to extra scripts or functions?