zsh-users
 help / color / mirror / code / Atom feed
* Re: Zsh Guide chapter 5 (substitutions)
@ 2001-08-22 17:10 martin.ebourne
  2001-08-23  7:30 ` Borsenkow Andrej
  0 siblings, 1 reply; 11+ messages in thread
From: martin.ebourne @ 2001-08-22 17:10 UTC (permalink / raw)
  To: zsh-users


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
values.

Also, a little above in 5.4.1, this bit is not quite right (missing the
'array[]').

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

Cheers,

Martin.




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.


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Zsh Guide chapter 5 (substitutions)
@ 2001-08-15 23:00 Peter Stephenson
  2001-08-16  2:31 ` Bart Schaefer
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Peter Stephenson @ 2001-08-15 23:00 UTC (permalink / raw)
  To: Zsh users list

I've uploaded a new version of A User's Guide to the Z-Shell which you
can find at
  http://sunsite.dk/zsh/Guide/

The main addition is chapter 5, which talks about all forms of shell
substitutions and expansions.  Chapter 3 has been slightly edited.  I'd
be interested in any comments on either, of course.  It's possible
chapter 3 is a little indigestible and I could move some of the
marginalia to a later chapter or appendices or whatever.

There are now PDF versions.  These were created by pdflatex; I suspect
they are not as well compressed as you would get with Distiller, but
they are certainly smaller than the PostScript versions.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-08-23  7:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-22 17:10 Zsh Guide chapter 5 (substitutions) martin.ebourne
2001-08-23  7:30 ` Borsenkow Andrej
2001-08-23  7:41   ` Borsenkow Andrej
  -- strict thread matches above, loose matches on Subject: below --
2001-08-15 23:00 Peter Stephenson
2001-08-16  2:31 ` Bart Schaefer
2001-08-17 16:55 ` Bart Schaefer
2001-08-20 18:26 ` Bart Schaefer
2001-08-20 18:35   ` Phil Pennock
2001-08-21 16:38   ` Bart Schaefer
2001-08-21 14:21 ` Richard Curnow
2001-08-21 15:34   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).