On May 22, 2007, at 12:24 PM, Phil Pennock wrote:
On 2007-05-22 at 06:01 -0500, Peter da Silva wrote:
BTDTGT"cd ~/src/nvi; make; sudo sh -c 'make install; vi=`which vi`; rm $vi;
 ln -s /usr/local/bin/vi $vi'"

You do realise that sooner or later a Linux wannabe distribution is
going to ship without vi by default, so that you'll just have created a
self-referential symlink (with no vi installed)?

1. No, the command "nvi" would still work.
2. If I were thick enough to ever run that command on Linux the compiler barf would alert me to the problem. 3. Which means I'd end up with no "vi" installed and a loose symlink pointing to a nonexistent file.
4. In any case, it's more likely that "vi" would be linked to "nano".
5. Or "emacs".

Reply via email to