This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: BASH syntax for passing command line to argument
- To: "Jim Reisert" <Jim_Reisert at terago dot com>
- Subject: Re: BASH syntax for passing command line to argument
- From: JROZYCKI at ebmail dot gdeb dot com
- Date: Wed, 11 Jul 2001 19:48:34 -0400
- cc: cygwin at cygwin dot com
make it a function in your .bashrc and remove the !*
function newls ()
{
ls -lrt | tail -7
}
"Jim Reisert" <Jim_Reisert@terago.com> on 07/11/2001 05:15:37 PM
To: Jeff Rozycki/EB/GDYN@GDYN
cc:
Subject: BASH syntax for passing command line to argument
I saw your article on the web:
http://sources.redhat.com/ml/cygwin/2001-05/msg00956.html
I can't figure out how to convert the following cshrc alias to work with
bash:
asic1-bstn:~>alias new='ls -lrt !* | tail -20'
asic1-bstn:~>new
!*: No such file or directory
My original CSH alias looked like:
alias new='ls -lrt \!* | tail -20'
but that doesn't work either.
Please help, I would be grateful.
- Jim
--
Jim Reisert Voice: 978-983-0224
Terago Communications, Inc. Fax: 978-794-9845
1 Tech Drive, Suite 335 Email: Jim_Reisert@terago.com
Andover, MA 01810-2452 WWW: http://www.terago.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/