Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$'...' and double-quotes
- X-seq: zsh-workers 9994
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: $'...' and double-quotes
- Date: Mon, 6 Mar 2000 05:13:13 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
zsh% x="$'\012'"
zsh% echo $x
$'\012'
Hrm.
I would have thought $'...' acted like any other string-substitution when
inside double-quotes, i.e. like $(...) $[...] and $((...)) all do. I
suppose the reason it doesn't work is because "'" is a quoted single
quote, not an ordinary single quote ...?
I'm not certain this needs to be changed, but I wanted to be sure it's
intentional.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author