Re:What typing ^D does on Unix (2009)
by zingermc on Tuesday September 06, 2016 @02:39PM
(#12438249)
I am amazed by the fact that I never accidentally trigger this feature.
[ Parent
| on HN ]
Re:What typing ^D does on Unix (2009)
by smhenderson on Tuesday September 06, 2016 @03:27PM
(#12438628)
Hah, yeah I seem to remember Ctrl-S leaving me flustered for quite a while when I first stumbled on it!
Re:What typing ^D does on Unix (2009)
by gonvaled on Tuesday September 06, 2016 @04:33PM
(#12439100)
^-Q is your friend!
You'd probably trigger it more often if ~/ didn't conveniently map to ~/ - it's quite cleverly designed in a way. Indeed, most of the two-character combinations you're likely to type starting with ~ map to themselves.
It's annoying when you're adminning users and atually want to type "~user/foo" though.
Re:What typing ^D does on Unix (2009)
by syncsynchalt on Tuesday September 06, 2016 @03:31PM
(#12438659)
Yes, it's a good choice of characters.
Specifically, the escape sequence is "\n~", with various options (visible by typing "\n~?"), and if the option is unknown it passes the "\n~{x}" as-is.
The biggest false positive you'll see is "\n~v", when executing bins out of the home dir of a user starting with the letter 'v'.