From: hzoli@cs.elte.hu (Zoltan Hidvegi)
To: kaefer@aglaia.snafu.de (Thorsten Meinecke)
Subject: Re: Doc fix for :s/l/r/ modifier
Date: Mon, 10 Jul 1995 19:55:42 +0100 (MET DST) [thread overview]
Message-ID: <9507101755.AA07857@turan.elte.hu> (raw)
In-Reply-To: <m0sULiv-00000PC@aglaia.snafu.DE> from "Thorsten Meinecke" at Jul 8, 95 00:18:11 am
Thorsten Meinecke wrote:
> Since aeons, the error message for `!:s//r/' (and no previous match) is:
>
> zsh: no previous substitution with &
>
> This is at least confusing for the casual user.
If this substitution gives an error, then the parameter modifier sould also
give error. Here is a patch for that. It depends on my previous patch for
:s//r/ (art. 176).
Zoltan
*** 1.13 1995/07/07 15:59:57
--- Src/subst.c 1995/07/10 17:51:04
***************
*** 1476,1485 ****
zsfree(hsubl);
hsubl = ztrdup(ptr1);
}
! if (hsubl)
! for (tt = hsubl; *tt; tt++)
! if (INULL(*tt))
! chuck(tt);
for (tt = hsubr = ztrdup(ptr2); *tt; tt++)
if (INULL(*tt))
chuck(tt);
--- 1476,1488 ----
zsfree(hsubl);
hsubl = ztrdup(ptr1);
}
! if (!hsubl) {
! zerr("no previous substitution", NULL, 0);
! return;
! }
! for (tt = hsubl; *tt; tt++)
! if (INULL(*tt))
! chuck(tt);
for (tt = hsubr = ztrdup(ptr2); *tt; tt++)
if (INULL(*tt))
chuck(tt);
prev parent reply other threads:[~1995-07-10 17:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-07 22:18 Thorsten Meinecke
1995-07-10 18:55 ` Zoltan Hidvegi [this message]
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=9507101755.AA07857@turan.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=kaefer@aglaia.snafu.de \
/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).