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

Re: OT: Bash-Scripting



Am 02.12.18 um 18:02 schrieb Heiko Schlittermann:
> 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
After word splitting, unless the -f option has  been  set,  bash  scans
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).

Gruß
Stefan

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: