From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16376 invoked by alias); 3 Dec 2014 16:44:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19484 Received: (qmail 2312 invoked from network); 3 Dec 2014 16:43:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Wed, 3 Dec 2014 17:43:53 +0100 From: Roman Neuhauser To: Ray Andrews Cc: Lawrence =?iso-8859-2?Q?Vel=E1zquez?= , zsh-users@zsh.org Subject: Re: triviality with prompts Message-ID: <20141203164353.GO23965@isis.sigpipe.cz> References: <547E568C.6070607@eastlink.ca> <141202190200.ZM31930@torch.brasslantern.com> <547E9158.6050103@eastlink.ca> <9CD0DDE8-21AB-4EA3-A69F-9B338ECC83F1@macports.org> <547F385B.3070405@eastlink.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <547F385B.3070405@eastlink.ca> User-Agent: Mutt/1.5.23 (2014-03-12) # 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