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

Re: unintuitive bracketing with return value




On 2022-10-18 12:32, Lawrence Velázquez wrote:
is equivalent to this:

     [ "${${1}##*[*?]*}" ] && echo "no wildcards"
     printenv "$1" || echo wildcards present

which is not at all what you want.

Quite right, I expressed it poorly.  Anyway the issue is closed, I understand it.  I wonder how old I'll have to be before I stop thinking in C.






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