This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tar -f behaviour


"Eugene Rosenzweig" <eugenius@dingoblue.net.au> writes:

> Looking at tar I noticed a small oddity in its behaviour, as compared to
> what I would have thought was 'normal'
> When dealing with files, using dash before options, the 'f' option has to be
> the last one in the option string, e.g.
>
> In conclusion, is this a bug or a feature?

A (normal) feature. 

In GNU world, options starts with one or two dash, and you can write : 
tar --file=file
tar -f file
tar -ffile

If fact the syntax 'tar zcf file' is an old syntax, only kept for
compatibility, it should be read : 'tar -z -c -f file'.

-- 
Julien Gilles


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]