zsh-users
 help / color / mirror / code / Atom feed
* Aliases with spaces?
@ 2003-03-01  9:45 Matthias Teege
  2003-03-01 18:08 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Teege @ 2003-03-01  9:45 UTC (permalink / raw)
  To: zsh-users


Moin,

is it possible to define a alias like "foo -r"=programm?

Many thanks
Matthias

-- 
Matthias Teege -- http://www.mteege.de
make world not war
PGP-Key auf Anfrage


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Aliases with spaces?
  2003-03-01  9:45 Aliases with spaces? Matthias Teege
@ 2003-03-01 18:08 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2003-03-01 18:08 UTC (permalink / raw)
  To: zsh-users

On Mar 1, 10:45am, Matthias Teege wrote:
> 
> is it possible to define a alias like "foo -r"=programm?

It's possible to define it, but it won't do anything useful.

To accomplish what you probably mean, you'd need something like:

    foo() {
      case $1 in (-r) shift; programm $*;; (*) command foo $*;; esac
    }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-01 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-01  9:45 Aliases with spaces? Matthias Teege
2003-03-01 18:08 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).