Re: executable postscript programs?

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
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 <>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)