From: becker@phobos.atria.com (Paul H. Becker)
To: zsh-workers@math.gatech.edu
Subject: ksh ${x#\\}
Date: Tue, 5 Dec 1995 11:38:47 -0500 [thread overview]
Message-ID: <9512051638.AA10950@phobos> (raw)
I know this is trivial, just a ksh/zsh incompatibility, but ....
In zsh 2.6-beta10 I need 3 \s to get rid of one and in ksh I can only
use 2.
% zsh -f
phobos% x="\\paul"
phobos% y="paul"
phobos% print -R "y=$y ${y#p} , x=$x ${x#\\} "
y=paul aul , x=\paul \paul
phobos% print -R "y=$y ${y#p} , x=$x ${x#\\} ${x#\\\}"
y=paul aul , x=\paul \paul paul
phobos% ksh
$ x="\\paul"
$ y="paul"
$ print -R "y=$y ${y#p} , x=$x ${x#\\} "
y=paul aul , x=\paul paul
$ print -R "y=$y ${y#p} , x=$x ${x#\\} ${x#\\\}"
ksh: "y=$y ${y#p} , x=$x ${x#\\} ${x#\\\}": bad substitution
(I hate dealing with \\// on NT)
Thanks again for all your work on the best shell available...
------------------------------------------------------------------------------
Paul Becker o Atria Software main: 617-676-2400
(617)676-2605 /~> 20 Maguire Road fax: 617-676-2410
becker@Atria.com o...(\ Lexington, MA 02173 http://www.atria.com/
----------------- ~~~~~~~~~~ -----------------------------------------------
reply other threads:[~1995-12-05 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=9512051638.AA10950@phobos \
--to=becker@phobos.atria.com \
--cc=becker@atria.com \
--cc=zsh-workers@math.gatech.edu \
/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).