fails in dash - should be changed to #!/bin/bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
a2mp3 (Ubuntu) |
Fix Released
|
Medium
|
Vassilis Pandis | ||
grml-shlib (Ubuntu) |
Fix Released
|
Medium
|
Michael Bienia |
Bug Description
Using feisty and a2mp3 0.01 - running a2mp3 with dash as default sh fails producing the ouput below. Problem is that it sources /etc/grml/sh-lib which uses keywords like function and vprint not supported by dash. Changing a2mp3 to #!/bin/bash should fix it but grml is really developed in zsh
Output:
/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
Terminated
Changed in a2mp3: | |
assignee: | nobody → pandisv |
status: | Confirmed → In Progress |
Changed in grml-shlib: | |
assignee: | nobody → geser |
importance: | Undecided → Medium |
status: | Unconfirmed → In Progress |
Changed in grml-shlib: | |
status: | Fix Committed → Fix Released |
Changed in a2mp3: | |
status: | Fix Committed → Fix Released |
I can confirm that.