gnome-power-cmd.sh doesn't work at all

Bug #130598 reported by CookedGryphon
4
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gnome-power-manager

<~>: gnome-power-cmd.sh shutdown
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
command 'shutdown' not recognised, only suspend, shutdown, hibernate or reboot are valid

is produced (whatever is typed)

Revision history for this message
CookedGryphon (adam-clements) wrote :

found a forum post mentioning that this is because it's running in sh rather than bash, and upon adding

#!/bin/bash

at the top, it works! I wouldn't know how to go about submitting a fix though so I'll leave it as a bug report.

Revision history for this message
Áron Sisak (asisak) wrote :

Thanks for reporting this issue. You can attach a "diff" or "patch" if you want to fix this issue.

Changed in gnome-power-manager:
assignee: nobody → asisak
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Áron Sisak (asisak) wrote :
Revision history for this message
Áron Sisak (asisak) wrote :
Changed in gnome-power-manager:
assignee: asisak → nobody
Revision history for this message
Áron Sisak (asisak) wrote :

gnome-power-manager (2.19.6-0ubuntu2) gutsy; urgency=low

  * debian/patches/72-fixbashizms.patchs
    - fixes issue with dash (LP: #130598)

 -- Aron Sisak <email address hidden> Mon, 06 Aug 2007 11:55:39 +0200

Changed in gnome-power-manager:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.