From: Dave Yost <Dave@Yost.com>
To: zsh-workers@sunsite.dk
Subject: executing foo.c
Date: Tue, 2 Aug 2005 23:38:39 -0700 [thread overview]
Message-ID: <pdy9883062309a0bf161632e103@[192.168.1.2]> (raw)
[-- Attachment #1: Type: text/plain, Size: 564 bytes --]
Hi.
There should be a way in shells to say what happens if I try to run
an executable file that has a filename extension belonging to some
set. For example, a builtin variable like this:
EXEC_SPECIAL=(/usr/local/bin/cg .c .java .cp)
What this would mean is that if foo.c is executable and someone tries
to execute it, do this:
/usr/local/bin/cg foo.c
Similarly for foo.java and foo.cp, or more if there are more
extensions in the array.
See http://Yost.com/computers/compileAndGo
The above note about shells is at the end of the page.
Comments?
Dave
[-- Attachment #2: Type: text/html, Size: 1028 bytes --]
next reply other threads:[~2005-08-03 6:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 6:38 Dave Yost [this message]
2005-08-03 7:26 ` Doug Kearns
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='pdy9883062309a0bf161632e103@[192.168.1.2]' \
--to=dave@yost.com \
--cc=zsh-workers@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).