Unzip again
Kerry Hoath
kerry at gotss.net
Mon Aug 26 05:05:22 EDT 2002
No your example won't work because unzip must see t he
wildcard characters on its commandline.
the command-line passed to unzip should be something like,
unzip *.zip
not unzip and a list of filenames.
Your substitution will result in a list of filenames, unzip _must_ see the wildcards.
Under dos; a program is responsible for expanding the
wildcards by grabbing them out of hte psp and passing them to
the findfirst and findnext functions.
Regards, Kerry.
On Sun, Aug 25, 2002 at 08:23:09AM +0100, Toby Fisher wrote:
> On Sun, 25 Aug 2002, Kerry Hoath wrote:
>
> > No Toby; the shell expands the file names.
> > assume we have foo.zip and bar.zip in the current directory;
> > unzip *.zip will pass the command line
> > unzip bar.zip foo.zip
> > and since unzip can't find foo.zip in bar.zip it failes.
> > You need to do
> > unzip \*.zip
> > or
> > unzip "*.zip"
> > or anything else thaat will let the wildcards past the shell.
>
> Arg, forgot that, sorry. Will command substitution work? Like:
> unzip `ls -l *.zip`
> or pipes
> ls |grep zip |unzip
> or even:
> ls *.zip | unzip
>
> > For an example of shell wildcard expantion try
> > echo *
> > in a directory; poor-man's ls.
>
> Haha yes, very poor, it doesn't even wrap gracefully!
>
> Cheers.
>
> --
> Toby Fisher Email: toby at g0ucu.freeserve.co.uk
> Tel.: +44(0)1480 417272 Mobile: +44(0)7974 363239
> ICQ: #61744808
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.fsf.org/philosophy/no-word-attachments.html
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Kerry Hoath: kerry at gotss.net kerry at gotss.eu.org or kerry at gotss.spice.net.au
ICQ: 8226547 msn: kerry at gotss.net Yahoo: kerryhoath at yahoo.com.au
More information about the Speakup
mailing list