PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > (zsh) glob-matching command name
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

(zsh) glob-matching command name

Réponse
 
LinkBack Outils de la discussion
Vieux 08/11/2006, 21h11   #1
Yakov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut (zsh) glob-matching command name

> 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

  Réponse avec citation
Vieux 08/11/2006, 21h37   #2
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: (zsh) glob-matching command name

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h50.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08837 seconds with 10 queries