Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2000 13:55:32 -0600
From:      Warner Losh <imp@village.org>
To:        "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
Cc:        arch@freebsd.org
Subject:   Re: Import of tcsh into src/contrib/, replacing src/usr.bin/csh 
Message-ID:  <200004071955.NAA01762@harmony.village.org>
In-Reply-To: Your message of "Fri, 07 Apr 2000 12:49:38 PDT." <200004071949.MAA41256@gndrsh.dnsmgr.net> 
References:  <200004071949.MAA41256@gndrsh.dnsmgr.net>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200004071949.MAA41256@gndrsh.dnsmgr.net> "Rodney W. Grimes" writes:
: The context goes into the history list, you don't have to worry the !!
: and !!:2-$ as they do not re-evaluate the regex, the pull the values stored
: in the history buffers.

They pull the regex out of the history buffer, which no longer match
the files that have just been removed:

% touch 1 2 3 4 5 6 
% rm [1-6]
% echo !$
echo [1-6]
echo: No match.
%

: You can always get the list back... think for a minute,  Do a few ``h'''s
: and look, then think some more about your ``context'' situation above.

But the expansion of the regex isn't in the buffer.  That's why I
needed the {}'s.  Those exand w/o reguard to files matching them.

: Oh... and you can stop by and borrow my nice new shinny orange
: cone to protect your head with :-)

Nah, you keep it :-).

Warner




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004071955.NAA01762>