home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14800 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.0 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!Pt!postmaster@hq.af.mil!lpeters
  2. From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Simple Korn shell question
  5. Message-ID: <15208@hq.hq.af.mil>
  6. Date: 18 Dec 92 15:01:47 GMT
  7. References: <Bz9wnp.IHz@cs.uiuc.edu>
  8. Sender: news@Pt.hq.af.mil
  9. Reply-To: lpeters@marge.hq.af.mil
  10. Organization: 7th Communications Group
  11. Lines: 37
  12.  
  13. In article <Bz9wnp.IHz@cs.uiuc.edu>, schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
  14. |> 
  15. |> Hi,
  16. |> Got a quick one.  If I have an alias like this:
  17. |> 
  18. |> alias wow='echo $@ hello there'
  19. |> 
  20. |> or even,
  21. |> 
  22. |> alias wow="echo $@ hello there"
  23. |> 
  24. |> Then why do I get the following when I run the alias?  To wit,
  25. |> 
  26. |> $ wt WOW
  27. |> hello there WOW
  28. |> $ 
  29. |> 
  30. |> The argument(s) should be first!  Why not?  The same thing happens with the
  31. |> print command.
  32. |> -Mike
  33.  
  34. My experience is that alias uses the parameters it's given at the
  35. end.  For those actions where *I* need something else, my $HOME/bin 
  36. directory grows a little bit larger.
  37. -- 
  38. /============================================================================\
  39. |                                            |                               |
  40. |                    ___                     |                               |
  41. |       ___....-----'---`-----....___        |   I haven't lost my mind --   |
  42. | =========================================  |                               |
  43. |        ___`---..._______...---'___         |    it's backed up on          |
  44. |       (___)      _|_|_|_      (___)        |           tape somewhere.     |
  45. |         \\____.-'_.---._`-.____//          |                               |
  46. |           ~~~~`.__`---'__.'~~~~            |   lpeters@marge.hq.af.mil     |
  47. |                   `~~~'                    |                               |
  48. |                                            |     Les Peters                |
  49. \============================================================================/
  50.