What is =C in bash? -
i read in script somewhere :
a_var=c ls
i tried it. executes ls
(i see content of current directory) , leaves a_var
empty. =c
in bash ? first time see it.
this set environment-variable a_var
"c"
in environment ls
runs in. used set collation ls
uses influence sorting (lang=c ls
or lc_collate=c ls
).
using c collation ls
sort files case-sensitive, meaning files starting a-z come after a-z. other collations may have additional rules, such ignoring dots or treating umlauts vowels - c
doesn't have this.
Comments
Post a Comment