[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: intended MBF: wrong redirections in maintainer scripts



Hi,

> as announced in our talk at debconf'18 [1] we intend a MBF about wrong
> redirections in maintainer scripts. In general these are of the form
>
>   foo 2>&1 1> /dev/null
>
> Here it was probably intended to send both stderr and stdout to /dev/null.
> In reality the effect of this is to send only 1 to /dev/null, and to send
> 2 to the file that 1 was sent to before that line.

when you file bugs, please also include a correct example. Looking at
your talk this seems to be:

foo >/dev/null 2>&1 

Thanks,

Carsten


Reply to: