Afficher un message
Vieux 19/09/2006, 09h33   #5
Ilya Zakharevich
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to use unzip with pipe

[A complimentary Cc of this posting was sent to
Chris Mattern
<syscjm@gwu.edu>], who wrote in article <12ejf8nmrj4o0e7@corp.supernews.com>:
> >>>Out of tens of postings, nobody gave a "correct" one:


> >>> unzip "*.zip"


> Dear God, that's ugly. Whoever decided unzip shouldn't
> handle a list of filenames but *should* try to do its own
> globbing needs to be shot.


Opionions differ. IMO, whoever got this (broken) idea that it is the
shell who globs (and not CRTL of the called application) should be
treated unmercifully.

Only the arguments which are meaningful to be globbed should be
globbed, and only the application knows its syntax to support this.
Otherwise you get this "just do not have a file named `-rf'" logic.

Of course, this flaw can't be easily fixed in current Unix shells
(well, interaction with `complete' database can somewhat here).
But whoever (?) wants to design a better shell (on a system with
not-yet finished CRTL ;-), could revisit this problem.

But I already expressed this opinion many times...

Hope this s,
Ilya
  Réponse avec citation
 
Page generated in 0,06848 seconds with 9 queries