delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/12/21:59:18

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: bash-function
12 Apr 1997 21:59:18 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33505620.A4.cygnus.gnu-win32@wgn.net>
References: <334F9ACE DOT 57DC AT studbox DOT uni-stuttgart DOT de>
Reply-To: dbe AT wgn DOT net
Mime-Version: 1.0
X-Mailer: Mozilla 3.0Gold (Win95; I)
Original-To: hcd AT studbox DOT uni-stuttgart DOT de
Original-CC: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Do Hung Cuong wrote:
> 
> Hi Folk,
> 
> Because alias under bash does not support parameter passing, I should
> realize this mechanism via a function.
> I put "ll() { ls -lF $1 | more }" in my .bashrc and hope, I can use this
                        ^
Don't you want @ or $ instead of 1?

> function in such a context like "ll -a" or "ll *.C"
> In the second case I got only the first file listed.
> Is this a *-expansion problem ?
> Anyone with some ideas ?

HTH,
-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019