invokation with -h doesn't correpond to usage instructions

Bug #1405478 reported by Karl-Philipp Richter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Invoking `disown --help` displays usage instructions

    $ disown --help
    bash: disown: --: invalid option
    disown: usage: disown [-h] [-ar] [jobspec ...]

but invocation of `disown -h` displays

    bash: disown: current: no such job

which is inconsistent.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: bash 4.3-11ubuntu1
Uname: Linux 3.19.0-031900rc1-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Dec 24 20:35:20 2014
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Revision history for this message
John Samuel (johnsamuel) wrote :

This feature is desirable for all other builtins. It looks like builtins only use the short versions of options and not the long versions.

Reference: https://sources.debian.net/src/bash/4.3-12/builtins/jobs.def/#L242
....
while ((opt = internal_getopt (list, "ahr")) != -1)
    {
      switch (opt)
....

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.