Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 1995 19:23:04 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
Cc:        FreeBSD-gnats-submit@freebsd.org, fenner@parc.xerox.com, bugs@freebsd.org
Subject:   Re: bin/669: csh doesn't allow !-2* 
Message-ID:  <95Aug9.192318pdt.177475@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Wed, 09 Aug 95 18:47:34 PDT." <JXsKMAme74@astral.msk.su> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <JXsKMAme74@astral.msk.su> you write:
>Can you test it with tcsh too?
>I don't found proper way in 30secs how to test it :-)

Sorry, I don't have tcsh.

Here is the output from a properly working csh, under SunOS.  (Same results 
from csh on Solaris 2.x and IRIX):

crevenia% echo 1 2 3
1 2 3
crevenia% ;
crevenia% echo !-2*
echo 1 2 3
1 2 3
crevenia% echo !-3$
echo 3
3
crevenia% echo !-4^
echo 1
1
crevenia% 

Here is the output from FreeBSD's csh:

% echo 1 2 3
1 2 3
% ;
% echo !-2*
2*: Event not found.
% echo !-3$
echo 3
3
% echo !-4^
4^: Event not found.
%

Note that the "$" case worked.

Here is FreeBSD's csh after applying the patch in my PR.

% echo 1 2 3
1 2 3
% ;
% echo !-2*
echo 1 2 3
1 2 3
% echo !-3$
echo 3
3
% echo !-4^
echo 1
1
%


  Bill




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95Aug9.192318pdt.177475>