From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Peter Stephenson" <pws@ibmth.df.unipi.it>, <zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: parameter and quoting (was: Re: Completion problems.)
Date: Thu, 5 Aug 1999 18:22:09 +0400 [thread overview]
Message-ID: <002c01bedf4d$e7442030$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <9908051318.AA19836@ibmth.df.unipi.it>
>
> The first possibility sounds sensible to me, too, since ksh allows
> you to do
>
> a="'"
> echo "${a%'}"
>
> although bash complains as well. It's probably a grey area, since the
> single UNIX specification says
>
Unfortunately, Single UNIX requires, that quotes be matched. This is from the
description of double-quotes:
==
Within the string of characters from an enclosed ${ to the matching "}", an even
number of unescaped double-quotes or single-quotes, if any, must occur.
==
It means, that preceding example MUST be
echo "${a%\'}"
/andrej
next prev parent reply other threads:[~1999-08-05 14:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-05 12:53 Sven Wischnowsky
1999-08-05 13:18 ` Peter Stephenson
1999-08-05 14:22 ` Andrej Borsenkow [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-08-06 7:14 Sven Wischnowsky
1999-08-05 14:26 Sven Wischnowsky
1999-08-05 14:41 ` Andrej Borsenkow
1999-08-05 16:24 ` Bart Schaefer
1999-08-05 12:19 Sven Wischnowsky
1999-08-05 12:05 ` Peter Stephenson
1999-08-05 16:20 ` Bart Schaefer
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='002c01bedf4d$e7442030$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/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).