Export to GitHub

arduino - issue #1149

Non portable shebang for bash


Posted on Apr 19, 2015 by Swift Monkey

!/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

Comment #1

Posted on Apr 19, 2015 by Swift Monkey

(No comment was entered for this change.)

Attachments

Status: New

Labels:
Type-Defect Priority-Medium