Path: utzoo!utgpu!watmath!watcgl!jmberkley From: jmberkley@watnext.waterloo.edu (J. Michael Berkley) Newsgroups: gnu.bash.bug Subject: n>&m redirection and alias expansion in bash 1.01 Message-ID: Date: 26 Jun 89 22:49:04 GMT Sender: daemon@watcgl.waterloo.edu Reply-To: jmberkley@watnext.waterloo.edu Distribution: gnu Organization: University of Waterloo, Waterloo, Ontario, Canada Lines: 23 I am still having trouble with foo 2>&1 > foo.out I was always getting the error message: syntax error near `&%1' With the help of an inciteful friend, I discovered that the problem is with some of my favourite aliases: alias 1='%1' It seems that bash does alias expansion after "&" even though the "&" doesn't indicate a background job. Mike Berkley, University of Waterloo PAMI Lab jmberkley@watnext.waterloo.edu {utai,uunet}!watmath!watnext!jmberkley PS - This is on a uVax running Ultrix and bash 1.01 compiled with bison and gcc.