[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spaces in the shebang interpreter path
From: |
Paul Jarc |
Subject: |
Re: spaces in the shebang interpreter path |
Date: |
Sun, 11 May 2008 14:01:29 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Felix Schwarz <felix.schwarz@web.de> wrote:
> I'm not able to specify an interpreter in a shebang line if the path
> to this interpreter contains spaces.
It's actually the kernel that interprets that line, not bash. The
historical behavior is that space separates the interpreter from an
optional argument, and there is no escape mechanism, so there's no way
to specify an interpreter with a space in the path. It's unlikely
that this would ever change, since that would break existing scripts
that rely on thecurrent behavior.
paul