From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.auc.dk
Subject: paths for filename arguments
Date: Thu, 7 Oct 1999 15:38:45 +0200 [thread overview]
Message-ID: <19991007153845.A3241@vin.ens-lyon.fr> (raw)
Is there a way to specify a path in arguments (a bit like with RISC OS,
for those who know -- but this would be done here at the shell level)?
For instance,
$ lesspath=(~/text ~/doc)
$ less less:blah
should make zsh search for file "blah" in the working directory, and
if it is not there, it should be searched in ~/text, then ~/doc. Before
executing less, zsh should replace "less:" by nothing or the correct
path element.
Perhaps this can already be done with variable expansion, but with a
more complicated syntax, I suppose...
One could also define compctl-like commands to avoid writing "less:",
so that
$ less --option blah
would add a correct path to "blah", but do nothing with "--option".
--
Vincent Lefèvre <vincent@vinc17.org> - PhD student in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
next reply other threads:[~1999-10-07 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-07 13:38 Vincent Lefevre [this message]
1999-10-07 16:10 ` Bart Schaefer
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=19991007153845.A3241@vin.ens-lyon.fr \
--to=vincent@vinc17.org \
--cc=zsh-users@sunsite.auc.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).