Project

General

Profile

Feature #2192

Make scripts POSIX compliant - Stop using #!/bin/bash

Added by Dreamcat 4 over 10 years ago. Updated about 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2014-07-27
Due date:
% Done:

0%

Estimated time:

Description

Hi,
This would help multi platform compatibility. In most cases, existing scripts are already POSIX compliant. I haven't submitted any pull request because it also requires the tvheadend developers change their habits! And not make any more bash scripts.

Compliance of shell scripts to POSIX standard can be checked with this program:

https://github.com/koalaman/shellcheck

If you decided to change your habits, I would be happy to submit a changeset for the existing scripts on master branch.
Many thanks.

History

#1

Updated by Dreamcat 4 over 10 years ago

Dreamcat 4 wrote:

This would help multi platform compatibility.

In particular FreeBSD since we are tired of patching this.

#2

Updated by Jaroslav Kysela about 10 years ago

  • Status changed from New to Fixed

Fixed in v3.9-1283-g7d3a65d . If we use any bashism in the future, just ping us..

#3

Updated by Jaroslav Kysela about 10 years ago

The updated fixes are in v3.9-1301-gf78ce0a .

Also available in: Atom PDF