[Bug 1782447] [NEW] If BROWSER isn't set, sensible-browser outputs: "usage: which [-as] program ..."
Paulo Marcel Coelho Aragão
1782447 at bugs.launchpad.net
Wed Jul 18 23:23:09 UTC 2018
Public bug reported:
If environment variable BROWSER isn't set, sensible-browser always shows
this error message:
usage: which [-as] program ...
even though it goes on and opens the browser.
It's easy to reproduce:
$ unset BROWSER
$ sensible-browser http://example.com
The bug is right at the beginning:
# Prevent recursive loops, where these values are set to this script
p="$(which sensible-browser)"
[ "$(which $BROWSER || true)" = "$p" ] && BROWSER=
It could be fixed with:
[ -n "$BROWSER" -a "$(which "$BROWSER")" = "$p" ] && BROWSER=
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: sensible-utils 0.0.12
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Jul 18 20:21:36 2018
Dependencies:
InstallationDate: Installed on 2018-04-28 (81 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: sensible-utils
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: sensible-utils (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sensible-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1782447
Title:
If BROWSER isn't set, sensible-browser outputs: "usage: which [-as]
program ..."
Status in sensible-utils package in Ubuntu:
New
Bug description:
If environment variable BROWSER isn't set, sensible-browser always
shows this error message:
usage: which [-as] program ...
even though it goes on and opens the browser.
It's easy to reproduce:
$ unset BROWSER
$ sensible-browser http://example.com
The bug is right at the beginning:
# Prevent recursive loops, where these values are set to this script
p="$(which sensible-browser)"
[ "$(which $BROWSER || true)" = "$p" ] && BROWSER=
It could be fixed with:
[ -n "$BROWSER" -a "$(which "$BROWSER")" = "$p" ] && BROWSER=
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: sensible-utils 0.0.12
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Jul 18 20:21:36 2018
Dependencies:
InstallationDate: Installed on 2018-04-28 (81 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: sensible-utils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sensible-utils/+bug/1782447/+subscriptions
More information about the foundations-bugs
mailing list