On Tue, Jan 20, 2015 at 19:29, Remco wrote: > Christian Weisgerber wrote: > >>> --- shutdown.c 16 Jan 2015 06:40:01 -0000 1.38 >>> +++ shutdown.c 19 Jan 2015 12:03:03 -0000 >>> @@ -134,6 +134,7 @@ main(int argc, char *argv[]) >>> nosync = 1; >>> break; >>> case 'p': >>> + dohalt = 1; >>> dopower = 1; >>> break; >>> case 'r': >> >> I don't like this. Instead, all the places that handle dohalt and >> doreboot should be extended with dopower; see the FreeBSD code. >> > > Is this more to your liking ? > > Make -h, -p and -r distinct, incompatible, options. (removes support for -hp) > Like FreeBSD, it seems reasonable to also mark -k as incompatible with the > other three options.
I hate this. I type shutdown -hp all the time.

