bash redirection failures

Mark Hymers markh at linuxfromscratch.org
Mon Dec 17 03:21:48 PST 2001


On Mon, 17, Dec, 2001 at 01:07:41PM +0100, Erika Pacholleck wrote:
> Sounds maybe a bit strange but I have problems with redirecting
> output in bash console. Until now I was used to simply do
> command 2&>1 1> /wherever/file.log
> 
> Now suddenly the 2.. and 1.. parts are treated as optional
> parameters to command, resulting in corresponding error messages,
> not found or whatever command thinks is wrong with this option.
Hmm.. shouldn't it be:

command >/wherever/file.log 2>&1

Mark

-- 
Mark Hymers				BLFS Editor
markh at linuxfromscratch.org
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list