zsh-users
 help / color / mirror / code / Atom feed
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: "Lawrence Velázquez" <larryv@macports.org>, zsh-users@zsh.org
Subject: Re: triviality with prompts
Date: Wed, 3 Dec 2014 17:43:53 +0100	[thread overview]
Message-ID: <20141203164353.GO23965@isis.sigpipe.cz> (raw)
In-Reply-To: <547F385B.3070405@eastlink.ca>

# rayandrews@eastlink.ca / 2014-12-03 08:20:43 -0800:
> On 12/02/2014 08:38 PM, Lawrence Velázquez wrote:
> > Peruse the "QUOTING" section in zshmisc(1). Surrounding a string with 
> > single quotes ('foo') is not the same as surrounding a string with 
> > single quotes preceded by a dollar sign ($'foo'). vq 
> 
> Thanks, that's a nice summary.  It's especially nice of it to mention
> the $'foo' gotcha, which is ignored in other docs.  Just when I
> thought I knew what a single quote was :( But the zshbuiltins page,
> under 'print' doesn't go into any detail about this $'foo' form.
> Never mind, the prompt string is the only place I've seen it so far
> and I'm forewarned now for the next time I see it.
 
well, $'' is apparently different syntax from '', and it's dangerous to
assume that two different syntaxes have the same semantics.

YMMV, but when i'm working on a script, the biggest slice of the time
spent with the various zsh* man pages is in zshmisc(1) and zshexpn(1).
you might also get some new insight from giving them a read or two.

-- 
roman


  reply	other threads:[~2014-12-03 16:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03  0:17 Ray Andrews
2014-12-03  3:02 ` Bart Schaefer
2014-12-03  4:28   ` Ray Andrews
2014-12-03  4:38     ` Lawrence Velázquez
2014-12-03 16:20       ` Ray Andrews
2014-12-03 16:43         ` Roman Neuhauser [this message]
2014-12-03 17:10           ` Ray Andrews
2014-12-03 17:39             ` Roman Neuhauser
2014-12-03 21:14             ` Bart Schaefer
2014-12-03 23:14               ` Ray Andrews
2014-12-04  5:06                 ` Bart Schaefer
2014-12-04 18:42                   ` Ray Andrews
2014-12-06 21:28                     ` Bart Schaefer
2014-12-07  0:37                       ` Ray Andrews
2014-12-03 21:16         ` Lawrence Velázquez
2014-12-03 21:22         ` Bart Schaefer
2014-12-03 23:40           ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141203164353.GO23965@isis.sigpipe.cz \
    --to=neuhauser@sigpipe.cz \
    --cc=larryv@macports.org \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).