On Sat, 18 Jun 2022 15:08:35 -0700
Backwoods BC wrote:
> I'm tacking 'unzip' this issue on here since it seems appropriate:
> Unzip does not recognize the standard '--' flag to tell it to stop
> looking for flags.
> 
> I was processing some files that started with '--' and I ended up
> having to use 'cygpath' to expand them to absolute paths so that unzip
> wouldn't complain.

As you already recognized, Info-zip utility does not support '--'
flag. This is not a bug but by design. It can easily treats the
file name beginning with '-' as follows.

touch -- -d -x
zip ./--abc.zip ./-d ./-x
rm -- -d -x
unzip ./--abc.zip '\-d'


-- 
Takashi Yano <takashi.y...@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to