reboot reboots system when -h is passed

Bug #1832292 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
New
Wishlist
Unassigned

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)

Revision history for this message
Jeff Lane  (bladernr) wrote :
Revision history for this message
Jeff Lane  (bladernr) wrote :

Also, yes, I get that this is a nit-pick and that there's a history there, this is more a wishlist thing because it's a usability issue.

Changed in systemd (Ubuntu):
importance: Undecided → Wishlist
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.