zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <pws@csr.com>, zsh-users@sunsite.dk
Subject: Re: Global History Substitution
Date: Fri, 04 Nov 2005 15:13:05 +0000	[thread overview]
Message-ID: <1051104151306.ZM23386@candle.brasslantern.com> (raw)
In-Reply-To: <20051104113038.7f3c8dcd.pws@csr.com>

On Nov 4, 11:30am, Peter Stephenson wrote:
} 
} It does mean
} 
}   !!:s/foo/bar/:gs/this/that/
} 
} will change meaning, associating the g with the preceeding substitution

Do you mean the following substitution?

I think :gs should always be treated as a unit.

} and then not treating the rest as text.  This might make the proposal
} less than usable.

The same thing occurred to me when I saw your previous message.
 
} Hmm, how about
} 
}   !!:s/foo/bar/:G

Yes, I think that would be OK, especially because it also disambiguates
!!:s/foo/bar/:Gs/this/that/ -- the :G can always apply to the preceding
substitution and :g always to the following one.

That just leaves the question of whether the G is ignored in the case
!!:Gs/foo/bar/ (where there is no preceding substitution).

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  parent reply	other threads:[~2005-11-04 15:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 19:07 Chris Johnson
2005-11-03 19:36 ` Philip Kizer
2005-11-03 22:08 ` zzapper
2005-11-04 11:09 ` Peter Stephenson
2005-11-04 11:30   ` Peter Stephenson
2005-11-04 13:12     ` zzapper
2005-11-04 15:13     ` Bart Schaefer [this message]
2005-11-04 16:12       ` Peter Stephenson
2005-11-08 19:07         ` zzapper

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=1051104151306.ZM23386@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=pws@csr.com \
    --cc=zsh-users@sunsite.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).