On 02/03/2012 06:25, Paul Allen Newell wrote: > +++ > type make; which -a make > make is aliased to `settitle Making $(basename $PWD) && make "$@"' > /usr/bin/make > /usr/bin/make > +++ > > I groaned when I saw this as it is obvious the $(PWD) is feeding > basename and that's the "make" error. Thanks. > > However, I am still trying to understand why this potentially incorrect > alias is creating text output to the screen which can't be redirected as > it isn't stdout or stderr ... or "3/4/5" as someone suggested I test.
I think it's because aliases are just simple text substitutions. So if you have 'make' being transformed to 'settitle Making $(basename $PWD) && make "$@"' then you would get 'make >& make.out' becoming 'settitle Making $(basename $PWD) && make "$@" >& make.out' and as you see the redirect only gets applied to the command after the '&&'. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple