[FFmpeg-devel] portable shell programming
Alexandre Ferrieux
alexandre.ferrieux
Thu Oct 8 09:20:13 CEST 2009
Diego Biurrun wrote:
> On Sun, Sep 27, 2009 at 04:06:34PM +0200, Diego Biurrun wrote:
>> * [...]
>
> * "command >& file" vs. "command > file 2>&1"
>
> The latter is the proper POSIX-compatible way to redirect both
> stdout and stderr to a file, the former is a bashism.
>
Worse, it is a bashism stolen from a cshism, with an ugly discontinuity since when "file" is a single digit it is
interpreted as a file descriptor (which is a good shism).
-Alex
More information about the ffmpeg-devel
mailing list