From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: sh-script.el and magic numbers
Date: Sun, 19 Jan 2003 14:47:01 +0200 [thread overview]
Message-ID: <200301191247.h0JCl1Zs020036@beta.mvs.co.il> (raw)
In-Reply-To: <200301190324.VAA14671@eel.dms.auburn.edu> (message from Luc Teirlinck on Sat, 18 Jan 2003 21:24:03 -0600 (CST))
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, 18 Jan 2003 21:24:03 -0600 (CST), Luc Teirlinck <teirllm@dms.auburn.edu> wrote:
>
> As I mentioned in an earlier report, there seems to be quite some
> evidence that sh-script.el assumes, at several places and in several
> ways, that shell scripts start with a magic number (#! line), unless
> it is a special standard configuration file, obviously intended to be
> sourced, style .bashrc. (The concrete definition being "matching
> `executable-magicless-file-regexp'".)
The short answer is that the "#!" magic number should be a requirement.
You can use it in sourced files (both in sh/bash and csh/tcsh). It is
good programming practice to add it. Leave it as it is.
Ehud.
- --
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:ehud@unix.mvs.co.il Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)
iD8DBQE+Kp5FLFvTvpjqOY0RAtUGAJ98dNsblho77u9h2NHudxBReu35swCeJRzb
E3TbeAtXr7ambCcmEcawZfA=
=ikn1
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2003-01-19 12:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-19 3:24 sh-script.el and magic numbers Luc Teirlinck
2003-01-19 12:47 ` Ehud Karni [this message]
2003-01-19 23:48 ` Glenn Morris
2003-01-20 7:59 ` Ehud Karni
2003-01-21 0:45 ` Luc Teirlinck
2003-01-21 10:49 ` Glenn Morris
2003-01-21 15:30 ` Luc Teirlinck
2003-01-21 15:44 ` Glenn Morris
2003-01-21 16:04 ` Luc Teirlinck
2003-01-21 17:23 ` Luc Teirlinck
2003-01-21 23:51 ` Luc Teirlinck
2003-01-23 8:00 ` Richard Stallman
2003-01-22 0:26 ` Luc Teirlinck
2003-01-21 16:54 ` Kai Großjohann
2003-01-21 19:29 ` Luc Teirlinck
2003-01-21 20:00 ` Kai Großjohann
2003-01-22 8:41 ` Kai Großjohann
2003-01-22 14:18 ` Luc Teirlinck
2003-01-22 20:51 ` Luc Teirlinck
2003-01-23 1:12 ` Kevin Rodgers
2003-01-20 16:45 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200301191247.h0JCl1Zs020036@beta.mvs.co.il \
--to=ehud@unix.mvs.co.il \
--cc=emacs-devel@gnu.org \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).