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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -