contains bashisms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grml-shlib (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On feisty with version 1.02, /etc/grml/sh-lib starts with #!/bin/sh but contains bashisms like function and vprint. This should maybe be changed to #!/bin/bash although the package description reads "The grml-shlib is developed on zsh, only partially tested on bash."
This probably won't do much as this is usually sourced from other scripts (see https:/
Output when sourced from dash:
/etc/grml/sh-lib: 37: function: not found
/etc/grml/sh-lib: 39: function: not found
/etc/grml/sh-lib: 41: function: not found
/etc/grml/sh-lib: 42: function: not found
/etc/grml/sh-lib: 44: function: not found
/etc/grml/sh-lib: 45: function: not found
/etc/grml/sh-lib: 46: function: not found
/etc/grml/sh-lib: 52: function: not found
/etc/grml/sh-lib: 53: function: not found
/etc/grml/sh-lib: 54: function: not found
/etc/grml/sh-lib: 55: function: not found
/etc/grml/sh-lib: 57: function: not found
/etc/grml/sh-lib: 58: function: not found
/etc/grml/sh-lib: 60: function: not found
/etc/grml/sh-lib: 61: function: not found
/etc/grml/sh-lib: 68: function: not found
[: 78: -a: bad number
/etc/grml/sh-lib: 81: function: not found
/etc/grml/sh-lib: 86: vprint: not found
/etc/grml/sh-lib: 89: function: not found
/etc/grml/sh-lib: 92: vprint: not found
/etc/grml/sh-lib: 95: function: not found
/etc/grml/sh-lib: 98: vprint: not found
/etc/grml/sh-lib: 101: function: not found
/etc/grml/sh-lib: 104: vprint: not found
/etc/grml/sh-lib: 106: function: not found
PANIC:
/etc/grml/sh-lib: 122: _syslog: not found
/etc/grml/sh-lib: 124: function: not found
WARN:
/etc/grml/sh-lib: 137: function: not found
/etc/grml/sh-lib: 151: function: not found
/etc/grml/sh-lib: 163: function: not found
/etc/grml/sh-lib: 170: warn: not found
/etc/grml/sh-lib: 170: syslog: not found
/etc/grml/sh-lib: 185: function: not found
/etc/grml/sh-lib: 1: dprint: not found