Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: append mark qualifier disturbs sort qualifier?



On Sep 24, 10:49am, Peter Stephenson wrote:
}
} On Wed, 24 Sep 2014 17:24:04 +0800
} Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
} > localhost% print -l **/*(odonT)
} > 2/3/4/
} > 2/3/4/5.txt 
} > 2/3/4/6.txt 
} > 2/
} > 2/3/
} > 
} > Here, looks like "(T)" disturbs the sorting of "(odon)"?
} 
} I've reproduced this but haven't looked in detail yet.
} 
} It looks vaguely like the extra / is confusing it into thinking 2/3/4/
} is an empty file in the directory 2/3/4.

Not an empty file, but a file named (empty string).

} However, that doesn't explain why 2/ comes before 2/3/.

Empty string sorts before 3 the same as empty string sorts before 5 and
6.  This is all the same side-effect.



Messages sorted by: Reverse Date, Date, Thread, Author