Re: how to use unzip with pipe



Ilya Zakharevich wrote:

[A complimentary Cc of this posting was sent to
Daniel Rock
<v200638@xxxxxxxxxxx>], who wrote in article <eeofqi$26a7$2@xxxxxxxxxxxxxxx>:
Ilya Zakharevich <nospam-abuse@xxxxxxxxx> wrote:
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.

Why should the wheel be reinvented for each and every application

Not in applications; as I said, the default, "legacy-compatible",
globbing would be done in CRTL. The applications should be able to
override this.

What's CRTL ?

what can be done in a consistent manner by a single instance (the
shell)?

By definition, shell can't do any reasonable globbing; otherwise you
get the "just do not have a file named -rf" syndrom. Only the
application knows which arguments can have a meaning of a
file-pattern, so may be globbed.

Yet , in the vast majority of cases the globbing the shell does
works fine. The only time globbing produced unexpected results
for me was years ago when I accidentally ended up with a file whose
name started with - in my home directory.

But I can't evaluate the alternative you're proposing because
I don't know what CRTL is.

.



Relevant Pages

  • Re: how to use unzip with pipe
    ... shell who globs should be ... globbing would be done in CRTL. ... shell can't do any reasonable globbing; ...
    (comp.unix.shell)
  • Re: how to use unzip with pipe
    ... shell who globs (and not CRTL of the called application) should be ... Why should the wheel be reinvented for each and every application what ... can be done in a consistent manner by a single instance (the shell)? ...
    (comp.unix.shell)
  • Re: Fertiges Skript oder Befehl zum Umwandeln aller Dateinamen in Kleinbuchstaben?
    ... gibt's beim Shell pattern matching (aka wildcards, globbing). ... Ich glaub das kann ich mir so merken;) Mit ist allerdings bisher ... Shell, find, Debian dpkg. ... gerade eben die Shell das globbing, ...
    (de.comp.os.unix.shell)
  • Re: Bedeutung des Sterns *
    ... Shell POSIX-konform sein möchte, ... das Globbing im »bash« zu erweitern und konfigurierbar zu machen. ... verhalten muss, das von sich behauptet, POSIX-kompatibel zu sein. ... Wenn Sie mir E-Mail schreiben, stellen | When writing me e-mail, please ...
    (de.comp.os.unix.linux.misc)
  • Re: Excercices
    ... > prefer a preprocessing of this information by the shell, ... 128-byte limit on the length of the command line. ... As for 'full control', that is even sillier. ... do you own globbing in DOS, do you use findfirst and findnext? ...
    (alt.lang.asm)