gvfs-open --help returns 1 exit code

Bug #1720199 reported by Николай Кузьмин
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
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)

Revision history for this message
Николай Кузьмин (nikolay-kuzmin) wrote :
summary: - gvfs-open always returns 1 exit code
+ gvfs-open --help returns 1 exit code
Revision history for this message
Sebastien Bacher (seb128) wrote :

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

Changed in gvfs (Ubuntu):
importance: Undecided → Low
status: New → 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.