gvfs-open --help returns 1 exit code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gvfs (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
gvfs-open --help prints following text and fails
This tool has been deprecated, use 'gio open' instead.
See 'gio help open' for more info.
/usr/bin/gvfs-open: 10: [: --help: unexpected operator
/usr/bin/gvfs-open: 10: [: --help: unexpected operator
gio: Unknown option --help
Usage:
gio open LOCATION...
Open files with the default application that
is registered to handle files of this type.
Reason:
gvfs-open uses wrong comparison operator.
command '[' compares strings using single '=' character.
'/usr/bin/[' and bash builtin [ also allow '==', but dash (which currently used as /bin/sh) requires '='.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gvfs-bin 1.34.0-0ubuntu1
ProcVersionSign
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Sep 28 22:42:59 2017
InstallationDate: Installed on 2017-04-10 (171 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Beta amd64 (20170408)
SourcePackage: gvfs
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- gvfs-open always returns 1 exit code + gvfs-open --help returns 1 exit code |
The issue was fixed in https:/ /git.gnome. org/browse/ gvfs/commit/ ?h=gnome- 3-26&id= ffbe2ad which is included now in the current artful version