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

syntactic trivia



        [ "$case" = 'insensitive' ] && dirs=( (#i)$1*(/N) ) \
                                    || dirs=(     $1*(/N) )

Since '(#i)' is a modifier of the globing would not this be more intuitive?:

    dirs=( $1*(/N#i) )

Just to understand it, I'm wondering why case filtering would be syntactically different from the other filters.

Speaking of intuition:

    [ true ] && do-this\    # No comments here, please.
             || do-that

I wonder how much trouble allowing that would be.  Probably written in stone that it will never happen, still, it's an obvious exception and I'd guess it would only take five minutes to code, the parser just throws out any comment before throwing out the backslash and the newline.  A tiny luxury.




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