Register
It is currently Wed Aug 20, 2014 6:24 pm

portable shebang for universe of distros


All times are UTC - 6 hours


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Thu Sep 13, 2012 1:07 pm   

Joined: Fri Aug 03, 2012 2:07 pm
Posts: 20
which of these shebangs is more portable across the universe of linux distros and unix-like distros: #!/bin/sh as against #!/bin/bash. thanks.


Top
 Profile  
 PostPosted: Thu Sep 13, 2012 4:30 pm   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 534
the first one.
but sh is not always bash!
if you use sh shebang, write your script with strict respect of POSIX rules.


Top
 Profile  
 PostPosted: Sat Sep 15, 2012 9:33 am   

Joined: Fri Aug 03, 2012 2:07 pm
Posts: 20
bash extensions out of the question then!


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP