The man page for the version that I have does not mention '--' nor the fact 
that the --execute
option is obsolete --- BUT!   ... the '--' option *does* work and functions as 
desired with
the command-line you gave...   the '-h' is echoed properly.

Thank you for taking the time to look into this.

The man page probably needs to be updated as even the 'Zesty' version still 
shows the
--command and --execute options (and no '--') with the same description as 
16.04 LTS.

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

Title:
  --execute changes following -h to --help

Status in gnome-terminal package in Ubuntu:
  New

Bug description:
  Description:  Ubuntu 16.04.1 LTS
  Release:      16.04

  gnome-terminal:
    Installed: 3.18.3-1ubuntu1
    Candidate: 3.18.3-1ubuntu1
    Version table:
   *** 3.18.3-1ubuntu1 500
          500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
          100 /var/lib/dpkg/status

  Create a bash script called echoParams.sh somewhere in your current
  path (attached):

      #!/bin/bash
      for param in "$@"
      do echo "param '$param'"
      done
      echo -n "Enter to finish..."
      read junk

  Execute the following:

      $ gnome-terminal --execute echoParams.sh -h

  In a new terminal window the output is:

      param '--help'
      Enter to finish...

  ... meanwhile, back at the command line:

      $ which gnome-terminal
      /usr/bin/gnome-terminal

      $ gnome-terminal --version
      GNOME Terminal 3.18.3

  
  The '-h' is being translated and passed as '--help'

  ... which is no help at all if the --execute command expects '-h'.

  All puns intended.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1663737/+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

Reply via email to