Timeline for List files sorted numerically
Current License: CC BY-SA 3.0
        6 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 5 at 10:01 | comment | added | Gilles 'SO- stop being evil' | @Timo It's a glob qualifier. It's specific to zsh. | |
| Mar 4 at 19:59 | comment | added | Timo | 
        
            
    where does the echo *(n) come from? Why does it sort file names with numbers the right way instead of ls? I want to use it in a script: files=$(echo *.pdf(n)) and get a syntax error.
        
     | 
|
| Feb 1, 2021 at 21:38 | comment | added | Gilles 'SO- stop being evil' | 
        
            
    @Michaël setopt numeric_glob_sort
        
     | 
|
| Feb 1, 2021 at 18:49 | comment | added | Michaël | 
        
            
    I'm getting bitten by this more often that I'd like to admit; is there a way, in ZSH, to default globbing to (n)?
        
     | 
|
| May 26, 2015 at 11:07 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | 
        
            
             
                
                    `(on)` is sort by name which is the default, `n` for that sort by name to be numerical. missing -d 
                
             
        
     | 
| Mar 12, 2012 at 1:52 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |