Non portable shebang for bash #3003
Labels
feature request
A request to make an enhancement (not a bug fix)
OS: Linux
Specific to the Linux version of the Arduino IDE
Milestone
!/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
I left a suggested patch here:
https://code.google.com/p/arduino/issues/detail?id=1149&thanks=1149&ts=1429478083
The text was updated successfully, but these errors were encountered: