BASH syntax for passing command line to argument
JROZYCKI@ebmail.gdeb.com
JROZYCKI@ebmail.gdeb.com
Wed Jul 11 16:49:00 GMT 2001
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/
More information about the Cygwin
mailing list