From: Thorsten Kampe <thorsten@thorstenkampe.de>
To: zsh-users@sunsite.dk
Subject: suffix alias
Date: Thu, 11 Nov 2004 15:28:29 +0100 [thread overview]
Message-ID: <1bvxo3gxze39v$.dlg@thorstenkampe.de> (raw)
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.
next reply other threads:[~2004-11-11 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 14:28 Thorsten Kampe [this message]
2004-11-11 14:50 ` Peter Stephenson
2004-11-11 15:13 ` Thorsten Kampe
2004-11-11 15:31 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='1bvxo3gxze39v$.dlg@thorstenkampe.de' \
--to=thorsten@thorstenkampe.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).