Alan Curry wrote: > Bob Proulx writes: > > As a side comment I don't see the point of: > > > > > $(which mv) "$@" > > I can guess the point: > > bash$ alias mv='mv -i' > bash$ touch a b > bash$ mv a b > mv: overwrite `b'? ^C > bash$ $(which mv) a b
Good observation. Yes, but... Using aliases in general scripting? That way leads to madness. In the proposed shell function aliases could be in effect but if that is the case then it would be better to explicitly turn off aliasing for that command. The traditional quoting to avoid aliases: \mv "$@" > Silly aliases. Agreed. Bob