home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!Pt!postmaster@hq.af.mil!lpeters
- From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
- Newsgroups: comp.unix.questions
- Subject: Re: Simple Korn shell question
- Message-ID: <15208@hq.hq.af.mil>
- Date: 18 Dec 92 15:01:47 GMT
- References: <Bz9wnp.IHz@cs.uiuc.edu>
- Sender: news@Pt.hq.af.mil
- Reply-To: lpeters@marge.hq.af.mil
- Organization: 7th Communications Group
- Lines: 37
-
- In article <Bz9wnp.IHz@cs.uiuc.edu>, schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
- |>
- |> Hi,
- |> Got a quick one. If I have an alias like this:
- |>
- |> alias wow='echo $@ hello there'
- |>
- |> or even,
- |>
- |> alias wow="echo $@ hello there"
- |>
- |> Then why do I get the following when I run the alias? To wit,
- |>
- |> $ wt WOW
- |> hello there WOW
- |> $
- |>
- |> The argument(s) should be first! Why not? The same thing happens with the
- |> print command.
- |> -Mike
-
- My experience is that alias uses the parameters it's given at the
- end. For those actions where *I* need something else, my $HOME/bin
- directory grows a little bit larger.
- --
- /============================================================================\
- | | |
- | ___ | |
- | ___....-----'---`-----....___ | I haven't lost my mind -- |
- | ========================================= | |
- | ___`---..._______...---'___ | it's backed up on |
- | (___) _|_|_|_ (___) | tape somewhere. |
- | \\____.-'_.---._`-.____// | |
- | ~~~~`.__`---'__.'~~~~ | lpeters@marge.hq.af.mil |
- | `~~~' | |
- | | Les Peters |
- \============================================================================/
-