Skip to content

Non portable shebang for bash #3003

Closed
Closed
@pgiffuni

Description

@pgiffuni

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

Metadata

Metadata

Assignees

Labels

OS: LinuxSpecific to the Linux version of the Arduino IDEfeature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions