|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
> Stephane CHAZELAS wrote:
>> What would be, to your mind, 5-10 top resons to switch from bash to zsh > completion, globbing, short forms, spelling correction, history > interactive handling, more consistent syntax, better documentation... I wonder if the following is possibe in zsh. I type command name "xyz.pdf" (And there is no function or executable script named "xyz.pdf"). I want the shell to invoke my action "acroread $0" in this case: when command matches *.pdf and there is no such function or executable script. I think this is impossible in bash, correct me if I'm wrong. Possible in zsh ? Yakov |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
2006-11-8, 13:11(-08), Yakov:
>> Stephane CHAZELAS wrote: >>> What would be, to your mind, 5-10 top resons to switch from bash to zsh >> completion, globbing, short forms, spelling correction, history >> interactive handling, more consistent syntax, better documentation... > > I wonder if the following is possibe in zsh. > I type command name "xyz.pdf" (And there is no function or executable > script named "xyz.pdf"). I want the shell to invoke my action > "acroread $0" in this case: when command matches *.pdf and there is > no such function or executable script. I think this is impossible in > bash, > correct me if I'm wrong. > Possible in zsh ? [...] alias -s pdf=acroread Then type xyz.pdf. (but that means that you don't benefit from a selective completion). -- Stéphane |
|
![]() |
| Outils de la discussion | |
|
|