Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 1995 19:30:03 -0700
From:      Bill Fenner <fenner@parc.xerox.com>
To:        freebsd-bugs
Subject:   Re: bin/669: csh doesn't allow !-2* 
Message-ID:  <199508100230.TAA11463@freefall.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/669; it has been noted by GNATS.

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* 
Date: Wed, 9 Aug 1995 19:23:04 PDT

 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?199508100230.TAA11463>