home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Newsgroups: comp.os.linux
- Subject: Re: Bash help
- Message-ID: <1992Nov12.195934.26076@klaava.Helsinki.FI>
- Date: 12 Nov 92 19:59:34 GMT
- References: <chengb.721589790@craft.camp.clarkson.edu>
- Organization: University of Helsinki
- Lines: 20
-
- chengb@craft.camp.clarkson.edu (Bruce) writes:
- >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.
-
- Use shell functions instead:
-
- dir() {
- ls -laF $* | more
- }
-
- >BTW, is there CSH port to Linux?
-
- There should be a tcsh port somewhere. I won't touch tcsh (except
- with rm), so I don't know where.
-
- --
- Lars.Wirzenius@helsinki.fi (finger wirzeniu@klaava.helsinki.fi)
- MS-DOS, you can't live with it, you can live without it.
-