[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Bash-Scripting



Stefan Baur <newsgroups.mail2@stefanbaur.de> (So 02 Dez 2018 18:15:59 CET):
> > Christian Knoke <chrisk@cknoke.de> (Sa 01 Dez 2018 16:16:43 CET):
> >> 4. shell globbing sortiert nicht alphabetisch, die Seiten können also
> >> durcheinander geraten
> >
> > Bisher hätte ich behauptet, die Resultate des Globbing *sind*
> > (alphabetisch) sortiert. Wie kommst Du drauf, daß das nicht so ist?
>
> "man bash" scheint Dir recht zu geben:
>
> Pathname Expansion
…
> each  word  for the characters *, ?, and [.  If one of these characters
> appears, then the word is regarded as a pattern, and replaced  with  an
> *alphabetically* sorted list of filenames matching the pattern (see Pat‐
> tern Matching below).

Ja, aber ich war/bin mir nicht sicher, ob Christian mit „shell globbing“
tatsächlich die „Pathname Expansion“ meint. Für mich wäre das das
gleiche, aber vielleicht habe ich ein Detail übersehen.

--
Heiko

Attachment: signature.asc
Description: PGP signature


Reply to: