Re: bash scripts conditionals and substrings

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: plug-discuss
Subject: Re: bash scripts conditionals and substrings
Am 04. Mar, 2005 schwätzte Lynn David Newton so:

> > #!/bin/sh
> >
>
> der.hans> Good, always leave the second line blank.
>
> Whereas I have included a blank line *always* in any
> script that uses a shebang, I've done so mainly because
> it looks good. I'm sure I've seen scripts that don't
> have one. Therefore, my question is whether there is a
> technical reason why a blank line should be there? I
> tend to doubt it, and have never read anything about
> this that I can recall. (I probably would have
> remembered it.)


There used to be. I think it was specifically for Perl scripts. Don't know
if it really matters anymore.

I figure the extra character doesn't take much space, it makes the file
much more readable and it keeps me from running into whatever obscure bug
there was that required a blank line :).

ciao,

der.hans
-- 
#  https://www.LuftHans.com/    http://www.AZOTO.org/
#  Motorräder töten nicht. Motorräder werden getötet.
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss