ps
outputs a newline after every entry. What are you trying to accomplish?
Do you have a username that contains a newline character? If so… why?!
ps
outputs a newline after every entry. What are you trying to accomplish?
Do you have a username that contains a newline character? If so… why?!
Another Technical Mistake
Given that Mac keybindings for “common special functions” (Open/Save/Cut/Copy/Paste/Find/etc.) use Command instead of Ctrl, leaving Ctrl effectively unused unless in combination with Command, this argument doesn’t hold much water.
Sure, some Emacs fan at Apple decided to add Emacs shortcuts to Cocoa controls, but that was a pretty arbitrary decision since people coming from Mac OS 9 didn’t use the Ctrl key, well, ever.
Yes; I wanted to mention that dhcpcd is not affected because the title explicitly mentions the DHCP client (dhclient), so people might go looking for alternative DHCP clients in the comments.
I think it’s a bit confusing that you mentioned the DHCP client (dhclient) and DHCP relay (dhrelay) in the title, then link to the Arch Wiki article about the DHCP server (dhcpd). Yes, dhrelay is contained in the dhcpd package (dhclient, however, is not), but I assume most people will be using a DHCP client and few will be operating a DHCP server or relay.
On Arch, the client is in the dhclient
package, which is generally also the name of the ISC DHCP client binary.
dhcpcd
(DHCP Client Daemon) is not affiliated with the ISC and still appears to be under active development.
Kinda hard to encode it in
/etc/passwd
, which separates entries with newlines and fields of an entry with colons.Of course, you can activate some alternative user database in
/etc/nsswitch.conf
and then you can have your usernames with newlines in them, but at least half of the tools on your system that process usernames will take that personally…