Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: path PATH
On Fri, Jan 27, 2023 at 4:12 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> local ccolored=( sed -r "s/^(.{6})([^ = ]*)/\1${cyn}\2${nrm}/" )
> local hhidden=( )
>
> local case='(#i)'
> local width=$(( COLUMNS - 5 ))
> local line=
> typeset -ga VARIABLES=()
All of these are going to obscure the types of any variables in the
surrounding scope that share those names. That's one reason I was
careful not to use any locals in my function.
> print -rl -- $VARIABLES | sed \
Does this do the right thing if you have a variable named $scalar (or
$array, etc.?)
It'd be better to convert the value of ${parameters[$1]} as you find
it, rather than build the whole output and then rewrite it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author