Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
suffix alias
- X-seq: zsh-users 8196
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: suffix alias
- Date: Thu, 11 Nov 2004 15:28:29 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
Hi,
I have a suffix alias "alias -s py=python". Now I can execute Python
scripts by name that don't have a "she-bang" and aren't executable.
That's great.
But now I noticed that I cannot execute Python scripts anymore that
are placed in my path (/usr/bin for example) because zsh doesn't
search the path anymore for the suffix alias.
Is there a solution for this problem?
Thorsten
--
For instance:
thorsten@cathedral% pwd
/home/thorsten
thorsten@cathedral% rst2html.py --version
python: can't open file 'rst2html.py'
thorsten@cathedral% unalias -s py
thorsten@cathedral% rst2html.py --version
rst2html.py (Docutils 0.3.6)
That's right - 'rst2html.py' isn't in the current working directory
but in /usr/bin where the install put it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author