stannickel / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Non portable shebang for bash #1149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

#!/bin/bash is very bad idea.
In essence some platforms (like BSD or Solaris don't have bash in that place so 
this will cause issues. You instead should use
#!/usr/bin/env bash

Also Ubuntu has started a trend of avoiding bash since the standard shell 
(dash) is faster so it's better to use the more portable /bin/sh when possible. 
See:
https://wiki.ubuntu.com/DashAsBinSh

Original issue reported on code.google.com by pfgiffu...@unal.edu.co on 19 Apr 2015 at 9:14

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by pfgiffu...@unal.edu.co on 19 Apr 2015 at 9:28

Attachments: