home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16523 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  899 b 

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Bash help
  5. Message-ID: <1992Nov12.195934.26076@klaava.Helsinki.FI>
  6. Date: 12 Nov 92 19:59:34 GMT
  7. References: <chengb.721589790@craft.camp.clarkson.edu>
  8. Organization: University of Helsinki
  9. Lines: 20
  10.  
  11. chengb@craft.camp.clarkson.edu (Bruce) writes:
  12. >like in csh, you can do: alias dir 'ls -laF \!* |more'
  13. >    to pass the parameter
  14. >in bash, I tried: alias dir='ls -laF $* |more'
  15. >and it wouldn't take the parameter correctly.
  16.  
  17. Use shell functions instead:
  18.  
  19.     dir() {
  20.         ls -laF $* | more
  21.     }
  22.  
  23. >BTW, is there CSH port to Linux?
  24.  
  25. There should be a tcsh port somewhere.  I won't touch tcsh (except
  26. with rm), so I don't know where.
  27.  
  28. --
  29. Lars.Wirzenius@helsinki.fi  (finger wirzeniu@klaava.helsinki.fi)
  30.    MS-DOS, you can't live with it, you can live without it.
  31.