Re: Re: Bash argument expanded inside alias

2012-03-15 Thread rcb
> From Chris Davies, Wed, 14 Mar 2012 20:36:43 + > And the function is trivial. Just pop it in your .bashrc >  muda() { local M="$1" D="$2"; find "${D:-.}" -mtime -"${M:-1}"; } > Why are you so reluctant to use functions? Even the bash man page says, > "For almost every purpose, aliases are sup

Re: Re: Bash argument expanded inside alias

2012-03-14 Thread rcb
On Tue 13 Mar 2012 15:49:52 +(+), Clive Standbridge wrote: > Oh I think I misunderstood the question. > On second thoughts, I think you probably meant to use an alias inside > a shell script, and to use the script's argument in the alias. In that > case, the problem would be shell paramete