Skip to main content
6 events
when toggle format what by license comment
S Feb 11, 2023 at 14:41 history edited G-Man Says 'Reinstate Monica' CC BY-SA 4.0
improved formatting
S Feb 11, 2023 at 14:41 history suggested Good Pen CC BY-SA 4.0
improved formatting
Feb 11, 2023 at 13:24 review Suggested edits
S Feb 11, 2023 at 14:41
May 11, 2016 at 23:17 comment added nisetama The first example prints 1 for an empty directory when nullglob is not enabled. In zsh, a=(*(DN));echo ${#a} with the N (nullglob) qualifier does not result in an error for an empty directory.
Dec 23, 2011 at 23:35 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
added methods for other shells
Dec 23, 2011 at 18:02 history answered enzotib CC BY-SA 3.0