--execute changes following -h to --help
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
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://
100 /var/lib/
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/
$ 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.
Newest gnome-terminal declares the --execute/--command options obsolete, and states that a lone "--" followed by the arguments is the desired way to go. That one doesn't suffer for me in newest gnome-terminal (git snapshot). Could you please try this with your version, that is:
gnome-terminal -- echoParams.sh -h