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

Re: path PATH




On 2023-01-25 14:18, Bart Schaefer wrote:

Similarly.

This exposes another case where only "typeset" can provide full information.

% typeset +m foo
integer foo
% printf "<%s>\n" $parameters[foo]
<>
%

The parameter is unset and so not in $parameters, but typeset
"remembers" that it is an integer.

From the stands, it look to me like describe-params has to be the way.   A new function is needed that cleans all this up, probably at the source code level.  Mind, I'm biased, I've never liked typeset.






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