Re: executable postscript programs?
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Tue, 7 Dec 2010 13:32:48 -0500
On 2010-12-07, Ilya Zakharevich wrote:
On 2010-12-07, luser- -droog <mijoryx@xxxxxxxxx> wrote:
Is there a way to trick bash into accepting % instead of #
on the bang line?
I'd like to put
%!/usr/bin/gs
at the front of my postscript program to run the script as a command.
bash does not (AFAIK) read this line. You need to trick the kernel.
(Which may be not a big deal if you are on cygwin. ;-)
man bash:
If the program is a file beginning with #!, the remainder of
the first line specifies an interpreter for the program. The
shell executes the specified interpreter on operating systems
that do not handle this executable format themselves.
--
Chris F.A. Johnson, author <http://shell.cfajohnson.com/>
===================================================================
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
.
- References:
- Re: executable postscript programs?
- From: Ilya Zakharevich
- Re: executable postscript programs?
- Prev by Date: Re: executable postscript programs?
- Next by Date: Re: executable postscript programs?
- Previous by thread: Re: executable postscript programs?
- Next by thread: Re: executable postscript programs?
- Index(es):
Relevant Pages
|