Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bionet!apple!usc!sdsu!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: gnu.bash.bug Subject: Re^2: n>&m redirection and alias expansion in bash 1.01 Message-ID: <2809@solo3.cs.vu.nl> Date: 27 Jun 89 21:35:16 GMT References: <89Jun27.073532edt.11740@neat.ai.toronto.edu> Distribution: gnu Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 17 lamy@ai.utoronto.ca (Jean-Francois Lamy) writes: \jmberkley@watnext.waterloo.edu (J. Michael Berkley) writes: \ \> foo 2>&1 > foo.out \ \(Independently of the problem with aliases): you should be saying \ \ foo > foo.out 2>&1 \ \if you want to follow "sh" usage (and bash usage if it follows sh semantics \for redirection). Order of indirection does matter. Precisely! What if Michael wanted to dup stderr to the original stdout and redirect stdout to a file? -- "I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam: they're small." (Stephen Savitzky) |maart@cs.vu.nl, mcvax!botter!maart