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

Re: Zsh Guide chapter 5 (substitutions)

I don't know if anyone has already pointed this out, but in the user guide
section 5.4.2:

  perl                          zsh
  %hash2 = %hash;               typeset -A hash2; hash2=(${(kv)hash})

Surely this should be hash2=("${(@kv)hash}") in case of empty string

Also, a little above in 5.4.1, this bit is not quite right (missing the

 % array=(some words)
  % args() { print $#; }
  % args ${(r)s*}
  % args ${(r)X*}
  % args "${(r)X*}"



This e-mail message is CONFIDENTIAL and may contain legally privileged
information.  If you are not the intended recipient you should not  read,
copy, distribute, disclose or otherwise use the information in this e-mail.
Please also telephone or fax us immediately and delete the message from
your system.  E-mail may be susceptible to data corruption, interception
and unauthorised amendment, and we do not accept liability for any such
corruption, interception or amendment or the consequences thereof.

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