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

Re: Is this a bug? Why not?



On Apr 1,  2:57pm, Phil Pennock wrote:
} Subject: Re: Is this a bug? Why not?
}
} > E.g., why doesn't the following cause $foo to be quoted?
} > 
} > schaefer[516] ARGV0=sh Src/zsh
} > $ foo="???"
} > $ print ${foo+"$foo"}
} > Doc Etc Src
} > $ 
} > 
} > It works in bash.
} 
} Defining "works" as seeing ??? emitted: it works in zsh with glob_subst
} disabled.

Well, note the "ARGV0=sh", so I'm specifically talking about glob_subst.
Just ${foo} "works" by the no_glob_subst definition.

} Is this use-case important enough to warrant yet another option?

Normally I'd be a stickler for not changing existing behavior, but in
this case it looks so obviously like a bug in the way glob_subst is
implemented that I'm not sure a new option is needed.



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