Public bug reported:

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.

** Affects: gnome-terminal (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "The echoParams.sh script listed in the bug description."
   
https://bugs.launchpad.net/bugs/1663737/+attachment/4816779/+files/echoParams.sh

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

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1663737/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to