Bug#726540: [tuxo...@gmail.com: Re: Bug#726540: zip: "zip - file >> out" creates broken archive]

2013-10-16 Thread Santiago Vila
El 16/10/13 17:47, Aleksey Morarash escribió: No, just packaging Erlang applications into zipped Erlang script executable. Its format can be described in next shell-script: ( echo '#!/usr/bin/env escript' echo '%%!-smp' zip -j - ebin/*; ) > target chmod 755 target But it works only when

Bug#726540: [tuxo...@gmail.com: Re: Bug#726540: zip: "zip - file >> out" creates broken archive]

2013-10-16 Thread Aleksey Morarash
No, just packaging Erlang applications into zipped Erlang script executable. Its format can be described in next shell-script: ( echo '#!/usr/bin/env escript' echo '%%!-smp' zip -j - ebin/*; ) > target chmod 755 target But it works only when I add "| cat" after zip invocation: ( echo '#!/us

Bug#726540: zip: "zip - file >> out" creates broken archive

2013-10-16 Thread Santiago Vila
El 16/10/13 17:20, Aleksey Morarash escribió: Package: zip Version: 3.0-6 Severity: normal Dear Maintainer, A have encountered that zip fails to write correct archive to a pipe when its opened with O_APPEND option. For example, this will create broken archive: $ zip - file >> outfile When th

Bug#726540: zip: "zip - file >> out" creates broken archive

2013-10-16 Thread Aleksey Morarash
Package: zip Version: 3.0-6 Severity: normal Dear Maintainer, A have encountered that zip fails to write correct archive to a pipe when its opened with O_APPEND option. For example, this will create broken archive: $ zip - file >> outfile When this one works as planned: $ zip - file | cat >>