home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Subject: Re: Bash help
- Path: sparky!uunet!think.com!unixland!rmkhome!rmk
- From: rmk@rmkhome.UUCP (Rick Kelly)
- Organization: The Man With Ten Cats
- Date: Fri, 13 Nov 1992 07:04:31 GMT
- Reply-To: rmk@rmkhome.UUCP (Rick Kelly)
- Message-ID: <9211130204.34@rmkhome.UUCP>
- References: <chengb.721589790@craft.camp.clarkson.edu>
- Lines: 21
-
- In article <chengb.721589790@craft.camp.clarkson.edu> chengb@craft.camp.clarkson.edu (Bruce) writes:
- >Hi, I need to know how to get a type of alias to work in bash:
- >
- >like in csh, you can do: alias dir 'ls -laF \!* |more'
- > to pass the parameter
- >in bash, I tried: alias dir='ls -laF $* |more'
- >and it wouldn't take the parameter correctly.
-
-
- You can do:
-
- function dir
- {
- ls -laF $* |more
- }
-
- Put this in the same file with your aliases.
-
- --
-
- Rick Kelly rmk@rmkhome.UUCP unixland!rmkhome!rmk rmk@frog.UUCP
-