[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-12-18 Thread Launchpad Bug Tracker
[Expired for gvfs (Ubuntu) because there has been no activity for 60
days.]

** Changed in: gvfs (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  Expired

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-19 Thread Sebastien Bacher
Weird, you looked at /usr/bin/gvfs-info? Maybe you have a local
installation taking over the binary (what is the output of "which gvfs-
info"?)

You can install/use debsums to verify if the file is corrupted or match
the package database

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  Incomplete

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-19 Thread Sebastien Bacher
Oh, and thanks for the details about the arguments handling

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  Incomplete

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-18 Thread Marcello Nuccio
You are right, the bug is fixed upstream. I have manually downloaded
gvfs-bin_1.34.1-1ubuntu1_amd64.deb and checked the file: it includes the
fix.

However it is not fixed on my computer. And I do not know why.

Unfortunately I have not found the package in /var/cache/apt/archives,
then I am not sure if the .deb installed on my computer is the same.

I have never tampered with my installation. This is a fresh install of
Artful Beta1 updated once a day with "apt dist-upgrade". I dont know
what has happened.

Regarding the use of "$@:2", there is no error displayed because:

1. "$@:2" is valid syntax in both shells, but it is clearly a bug
because it is expanded to "$1" "$2" ... ":2", which does not make sense.
I think that in bash it should have been "${@:2}" (2 is an offset),
while in dash the syntax is not supported and you should use "shift"
instead. You can check it by running:

$ echo 'echo "$@:2"; echo "${@:2}"' | bash -s foo bar
foo bar:2
bar

$ echo 'echo "$@:2"; echo "${@:2}"' | dash -s foo bar
foo bar:2
dash: 1: Bad substitution

2. "gio help info" discards all parameters after "info", then for
example "gio help info :2" is equivalent to "gio help info".

In short: I think you can safely remove "$@:2".

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  Incomplete

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-17 Thread Sebastien Bacher
Thank you for your bug report, it's a bit weird that you report the
issue using 1.34.1

could you try again with the current version? the comparison issue has been 
fixed in that version
https://git.gnome.org/browse/gvfs/commit/?h=gnome-3-26&id=ffbe2adcb

There is no error displayed about the "$@:2" error displayed either,
could you give details on the issue?

** Changed in: gvfs (Ubuntu)
   Importance: Undecided => Low

** Changed in: gvfs (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  Incomplete

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-06 Thread Ubuntu Foundations Team Bug Bot
The attachment "fixes bashisms in /usr/bin/gvfs-info" seems to be a
patch.  If it isn't, please remove the "patch" flag from the attachment,
remove the "patch" tag, and if you are a member of the ~ubuntu-
reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  New

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1721719] Re: gvfs-info bashism

2017-10-06 Thread Marcello Nuccio
** Description changed:

  The script /usr/bin/gvfs-info uses two bash features:
  
  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.
+ 
+ You can see the errors by running "gvfs-info --help".
  
  I have found this bug using xdg-open to open a PDF file from the command
  line. xdg-open executes "gvfs-info --help" to check the environment, but
  this command fails because of the problems described.
  
  The attached patch fixes the problem for me.
  
  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10
  
  $ apt-cache policy gvfs-bin
  gvfs-bin:
-   Installato: 1.34.1-1ubuntu1
-   Candidato:  1.34.1-1ubuntu1
-   Tabella versione:
-  *** 1.34.1-1ubuntu1 500
- 500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
- 100 /var/lib/dpkg/status
+   Installato: 1.34.1-1ubuntu1
+   Candidato:  1.34.1-1ubuntu1
+   Tabella versione:
+  *** 1.34.1-1ubuntu1 500
+ 500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
+ 100 /var/lib/dpkg/status
  
  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=
-  LANG=it_IT.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=
+  LANG=it_IT.UTF-8
+  SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1721719

Title:
  gvfs-info bashism

Status in gvfs package in Ubuntu:
  New

Bug description:
  The script /usr/bin/gvfs-info uses two bash features:

  1. "==" is used for string comparison instead of "="
  2. "$@:2" is used instead of "shift" and then "$@" to expand all but the 
first argument.

  You can see the errors by running "gvfs-info --help".

  I have found this bug using xdg-open to open a PDF file from the
  command line. xdg-open executes "gvfs-info --help" to check the
  environment, but this command fails because of the problems described.

  The attached patch fixes the problem for me.

  $ lsb_release -rd:
  Description:  Ubuntu Artful Aardvark (development branch)
  Release:  17.10

  $ apt-cache policy gvfs-bin
  gvfs-bin:
    Installato: 1.34.1-1ubuntu1
    Candidato:  1.34.1-1ubuntu1
    Tabella versione:
   *** 1.34.1-1ubuntu1 500
  500 http://it.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: gvfs-bin 1.34.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct  6 09:45:04 2017
  InstallationDate: Installed on 2017-09-21 (15 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1721719/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp