Re: Problem with setting multiple alias with version 2.16
William Lee <[email protected]> Tue, 20 May 2003 07:34:21 -0700
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Nathan Fiedler wrote:
> The help for the alias command has a subtle example showing how to
> define an alias for multiple commands. All you need do is wrap the two
> or more commands with double-quotes.
>
>
>>alias st "clear all ; attach 8899"
>
>
> n
>
It doesn't seem to work, I did:
> alias st "clear all ; attach 8899"
Alias successfully defined: st
> st
Command not found: clear all ; attach 8899
Use 'help commands' for more information.
>
It seems to treat the whole string as a command...
Here is what I got when I do "help alias":
Create a command alias, or display alias definitions.
Syntax: alias [<name> [<command-string>]]
Subsequent uses of 'name' will invoke 'command-string'.
With no arguments, shows all defined aliases.
With one argument, shows the named alias's definition.
Examples:
alias al1 cmd arg1 arg2
alias al2 cmd "arg;with;semicolons"
alias mymacro cmd1 ; cmd2 ; cmd3
See also: unalias
I was following the 3rd case, so....
--
William Lee (Will) | Sendmail Inc.
Email: [email protected] | http://www.sendmail.com
Tel: (510) 594-5505 |