* Colon modifiers on history substitution
@ 1995-11-09 14:21 Vinnie Shelton
[not found] ` <shelton@icd.teradyne.com>
0 siblings, 1 reply; 3+ messages in thread
From: Vinnie Shelton @ 1995-11-09 14:21 UTC (permalink / raw)
To: zsh-workers
:p no longer works after a ^ substitution, to wit:
spacely% echo $ZSH_VERSION
2.6-beta11
spacely% ^VER^VER^
echo $ZSH_VERSION # OK so far
2.6-beta11
spacely% ^VER^VER^:p
echo $ZSH_VERSION:p # Used to say what it would do
2.6-beta11:p # ... not anymore
Solaris 2.3 and SunOS4.1.3_U1, in case that matters.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Colon modifiers on history substitution
[not found] ` <shelton@icd.teradyne.com>
@ 1995-11-09 17:35 ` Barton E. Schaefer
1995-11-09 18:58 ` Vinnie Shelton
0 siblings, 1 reply; 3+ messages in thread
From: Barton E. Schaefer @ 1995-11-09 17:35 UTC (permalink / raw)
To: acs, zsh-workers
On Nov 9, 9:21am, Vinnie Shelton wrote:
} Subject: Colon modifiers on history substitution
}
} :p no longer works after a ^ substitution
This was never supposed to work -- you're using an undocumented side-
effect of the way that Paul F. originally implemented ^ substitution.
Now that history substitutions no longer rely on rewriting the parser
input, the side-effect has gone away.
--
Bart Schaefer Vice President, Technology, Z-Code Software
schaefer@z-code.com Division of NCD Software Corporation
http://www.well.com/www/barts
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Colon modifiers on history substitution
1995-11-09 17:35 ` Barton E. Schaefer
@ 1995-11-09 18:58 ` Vinnie Shelton
0 siblings, 0 replies; 3+ messages in thread
From: Vinnie Shelton @ 1995-11-09 18:58 UTC (permalink / raw)
To: schaefer; +Cc: zsh-workers
In message <951109093526.ZM24995@zyrcon.z-code.com>, Barton E. Schaefer wrote:
>On Nov 9, 9:21am, Vinnie Shelton wrote:
>} Subject: Colon modifiers on history substitution
>}
>} :p no longer works after a ^ substitution
>
>This was never supposed to work -- you're using an undocumented side-
>effect of the way that Paul F. originally implemented ^ substitution.
>
>Now that history substitutions no longer rely on rewriting the parser
>input, the side-effect has gone away.
It's just my week to trip over ghosts, I guess.
Since it works in csh, I always assumed this was an officially
sanctioned "good thing". I'd prefer that zsh follow csh on this,
but it's not worth a significant effort, IMO.
Hmm, I was about to ask what I could do instead - presto - expansion
almost works:
% echo aacd
aacd
^aa^ab<TAB>
results in:
echo ab cd
If we could get rid of that extra space, that would be cool!
--Vin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-11-09 19:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-11-09 14:21 Colon modifiers on history substitution Vinnie Shelton
[not found] ` <shelton@icd.teradyne.com>
1995-11-09 17:35 ` Barton E. Schaefer
1995-11-09 18:58 ` Vinnie Shelton
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).