[Bug 1832292] [NEW] reboot reboots system when -h is passed

Jeff Lane jeffrey.lane at canonical.com
Tue Jun 11 04:53:52 UTC 2019


Public bug reported:

-h is a fairly common shortcut for --help.

reboot, however, reboots the machine when one issues the command:

reboot -h

Now looking at the man page, there is an entry for --halt and --help,
but NOTHING for -h at all.

reboot should return the same as --help when -h is passed, or at the
very least it should error out and not reboot the system, instead
perhaps dumping a message like "-h unknown argument".

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd-sysv 237-3ubuntu10.21
ProcVersionSignature: Ubuntu 4.18.0-21.22~18.04.1-generic 4.18.20
Uname: Linux 4.18.0-21-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Tue Jun 11 00:50:22 2019
InstallationDate: Installed on 2016-02-11 (1215 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

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

Title:
  reboot reboots system when -h is passed

Status in systemd package in Ubuntu:
  New

Bug description:
  -h is a fairly common shortcut for --help.

  reboot, however, reboots the machine when one issues the command:

  reboot -h

  Now looking at the man page, there is an entry for --halt and --help,
  but NOTHING for -h at all.

  reboot should return the same as --help when -h is passed, or at the
  very least it should error out and not reboot the system, instead
  perhaps dumping a message like "-h unknown argument".

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-sysv 237-3ubuntu10.21
  ProcVersionSignature: Ubuntu 4.18.0-21.22~18.04.1-generic 4.18.20
  Uname: Linux 4.18.0-21-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: Unity:Unity7:ubuntu
  Date: Tue Jun 11 00:50:22 2019
  InstallationDate: Installed on 2016-02-11 (1215 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list