Re: Shell hate (was Re: unzip hate)

2007-02-21 Thread Peter da Silva
On Feb 20, 2007, at 2:33 PM, Andrew Black wrote: Peter da Silva wrote: "No, that one's a port of a VMS program, and it only does VMS style wildcards." VMS Perl tries to be helpful and do the shell expansion that you might expect. Usually this is helpful. Oh. God. Thank you. You've reminded

Re: Shell hate (was Re: unzip hate)

2007-02-21 Thread David Cantrell
Peter da Silva wrote: OK. I forgot all about escaping quotes. Two sentence summary: "How do you enter E. E. 'Doc' Smith as the title? Smith, E. E. (Doc) Woo! more special characters to hate! -- David Cantrell | Godless Liberal Elitist Did you know that shotguns taste like candy canes? Pu

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Andrew Black
Peter da Silva wrote: "No, that one's a port of a VMS program, and it only does VMS style wildcards." VMS Perl tries to be helpful and do the shell expansion that you might expect. Usually this is helpful. But if you do perl something.pl "*wildcard*" the quotes get sucked up by DCL so perl

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Peter da Silva
On Feb 20, 2007, at 11:30 AM, Martin Ebourne wrote: More! More! Go on, more pain! Harder! OK. I forgot all about escaping quotes. Two sentence summary: "How do you enter E. E. 'Doc' Smith as the title? Do you double the quotes, or use different quotes, or use an escape character, and which e

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Smylers
Martin Ebourne writes: > Smylers wrote: > > > Bash 3 introduced the failglob option > > Hey, bash wasn't first. :) Erm, yeah ... that's why farther down in my message I explicitly mentioned an example of some other shell that had this feature years ago and state how hateful it is that Bash too

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Martin Ebourne
Peter da Silva wrote: How many of the people who think shell wildcard expansion is hateful have spent much time using other people's programs on any OS where the command line is the normal user interface and where wildcard expansion is up to the application writers? God it's hateful. "Oh yeh,

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Martin Ebourne
Smylers wrote: A shell which expands a pattern if it can or otherwise (silently) pretends that you quoted it is hateful. Ever so. Bash 3 introduced the failglob option Hey, bash wasn't first. :) (Don't confuse this with the nullglob option, which (silently) pretends that non-matching pat

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Peter da Silva
How many of the people who think shell wildcard expansion is hateful have spent much time using other people's programs on any OS where the command line is the normal user interface and where wildcard expansion is up to the application writers? God it's hateful. "Oh yeh, that program only doe

Re: Shell hate (was Re: unzip hate)

2007-02-20 Thread Smylers
Robert Rothenberg writes: > On 20/02/07 15:37 Abigail wrote: > > > Perhaps you suffer from the fact that your shell is expanding the *? > > You're right. My mistake. A shell which expands a pattern if it can or otherwise (silently) pretends that you quoted it is hateful. Apart from anything el

Shell hate (was Re: unzip hate)

2007-02-20 Thread Robert Rothenberg
On 20/02/07 15:37 Abigail wrote: > Perhaps you suffer from the fact that your shell is expanding the *? You're right. My mistake.

Re: unzip hate

2007-02-20 Thread Peter da Silva
$ unzip -l foo foo/* unzip: No match. What happens with $ unzip -l foo 'foo/*'

Re: unzip hate

2007-02-20 Thread Abigail
On Tue, Feb 20, 2007 at 03:12:57PM +, Robert Rothenberg wrote: > > Take the following zip file > > $ unzip -l foo > Archive: foo.zip > Length Date TimeName > > 0 02-20-07 15:05 foo/ > 0 02-20-07 15:05 foo/file1 > 0 0

unzip hate

2007-02-20 Thread Robert Rothenberg
Take the following zip file $ unzip -l foo Archive: foo.zip Length Date TimeName 0 02-20-07 15:05 foo/ 0 02-20-07 15:05 foo/file1 0 02-20-07 15:05 foo/bar/ 0 02-20-07 15:05 foo/bar/file2