Public bug reported:

The /usr/lib/pm-utils/sleep.d/99video script

 - contains #!/bin/sh at the top
 - contains "shopt -s extglob" near the beginning

This was fine when /bin/sh pointed to bash.  But now that /bin/sh points
to dash, this produces the following error:

Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
/usr/lib/pm-utils/sleep.d/99video: 22: /usr/lib/pm-utils/sleep.d/99video: 
shopt: not found

(seen in /var/log/pm-suspend.log).

I don't know if the correct fix is
 - to remove the use of shopt and hope that the rest of the script works (no 
other bashism)
or
 - to put #!/bin/bash at the top

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pm-utils 1.4.1-9git1ubuntu0.1
ProcVersionSignature: Ubuntu 3.8.0-25.37-generic 3.8.13
Uname: Linux 3.8.0-25-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Fri Jun 14 08:03:41 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-27 (47 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: pm-utils
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: pm-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug gnome3-ppa package-from-proposed raring 
third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1190869

Title:
  incorrect use of shopt when /bin/sh is dash instead of bash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1190869/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to