From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with ESMTP id DAA23718 for ; Wed, 6 Dec 1995 03:55:53 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA26324; Tue, 5 Dec 1995 11:39:43 -0500 (EST) Resent-Date: Tue, 5 Dec 1995 11:39:43 -0500 (EST) Message-Id: <9512051638.AA10950@phobos> From: becker@phobos.atria.com (Paul H. Becker) Date: Tue, 5 Dec 1995 11:38:47 -0500 Organization: Atria Software Inc, Lexington, MA. Reply-To: becker@atria.com X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: zsh-workers@math.gatech.edu Subject: ksh ${x#\\} Resent-Message-ID: <"LaAdg2.0.BR6.EN7nm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/672 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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/ ----------------- ~~~~~~~~~~ -----------------------------------------------