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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832292

Title:
  reboot reboots system when -h is passed

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to