emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh-script.el and magic numbers


From: Ehud Karni
Subject: Re: sh-script.el and magic numbers
Date: Sun, 19 Jan 2003 14:47:01 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 18 Jan 2003 21:24:03 -0600 (CST), Luc Teirlinck <address@hidden> 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:address@hidden                  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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]