4 ms·
Getting rid of good things would be bad, but is sed 10q really "ridiculously complex"?
by telemachos 14y ago
Getting rid of good things would be bad, but is sed 10q really "ridiculously complex"?
- DeepDuh 14y agoNo, but $home instead of ~ is, IMO.
- telemachos 14y agoAh, fair enough. I really only meant to cite the one example - since I found it so striking when I first saw it. (It had never occurred to me to use sed for head that way.)
- ori_b 14y agoThe thing is that ~ is special shell magic. $home is an environment variable, and is consistently expanded as such. Although, to my eyes, the most plan9-y way of implementing a home directory would be to have '/home' as your home directory no matter what, and have it default to a bind from /usr/$username.