zsh-workers
 help / color / mirror / code / Atom feed
* ksh ${x#\\}
@ 1995-12-05 16:38 Paul H. Becker
  0 siblings, 0 replies; only message in thread
From: Paul H. Becker @ 1995-12-05 16:38 UTC (permalink / raw)
  To: zsh-workers


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/
-----------------  ~~~~~~~~~~  -----------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-12-05 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-12-05 16:38 ksh ${x#\\} Paul H. Becker

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).