shell question - #!/bin/sh or #! /bin/sh ?

Oliver Grawert ogra at ubuntu.com
Sun Jun 28 11:53:14 UTC 2009


hi,
On Sa, 2009-06-27 at 15:40 +0200, Soren Orel wrote:
> It's a usual thing to begin a script like this:
> 
> #!/bin/sh
> 
> but sometimes I see this (a space after the "!"):
> 
> #! /bin/sh
> 
> are there any differences regarding these two lines?

yes, the latter complies with the POSIX scripting rules ...
the space is irrelevant for execution though ...

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090628/19b078f6/attachment.sig>


More information about the ubuntu-users mailing list