[vlc-devel] [PATCH 1/5] pkg-static.sh: close file before overwriting it.

Jean-Baptiste Kempf jb at videolan.org
Wed May 31 07:50:27 CEST 2017


On Wed, 31 May 2017, at 01:56, Robert Mourning wrote:
> Improves support for building with Windows Subsystem for Linux.
> When the input file is on DrvFs (windows file system), the "mv"
> command which overwrites the original file fails unless the
> file is closed first.

> +exec <&-
> +

This requires a comment, IMHO. This syntax is not very clear, so when
you  read the code, you need help to understand it.

>  mv -f -- "$1.tmp" "$1"

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list