Carl Lowenstein wrote:
On 6/13/07, Lan Barnes <[EMAIL PROTECTED]> wrote:
On Wed, June 13, 2007 11:56 am, Ralph Shumaker wrote:
> Lan Barnes wrote:
>
>>On Wed, June 13, 2007 11:43 am, Ralph Shumaker wrote:
>>
>>
>>>Bob La Quey wrote:
>>>
>>>
>>>
>>>>BTW as far as I am concerned vi == vim, since all of the
>>>>systems I am using have tthe link that Lan mentioned.
>>>>
>>>>
>>>vi # vim when you boot into linux rescue. There it's only vi.
>>>
>>>
>>>
>>
>>Ralph, do you know if it is a different binary?
>>
>>
>>
> On my fc4 system, vi is an alias.
>
> $ which vim
> /usr/bin/vim
> $ which vi
> alias vi='vim'
> /usr/bin/vim
>
>
I'm beginning to think it's all over the place at least on Linux.
Here's some interesting data:
# FC3 system
[EMAIL PROTECTED] tmp]$ ls -l /bin/vi
-rwxr-xr-x 1 root root 477136 Aug 10 2005 /bin/vi*
[EMAIL PROTECTED] tmp]$ ls -l /usr/bin/vim
-rwxr-xr-x 1 root root 2049704 Aug 10 2005 /usr/bin/vim*
# FC6 system
[EMAIL PROTECTED] ~]$ ls -l /bin/vi
-rwxr-xr-x 1 root root 656468 Feb 27 04:41 /bin/vi
[EMAIL PROTECTED] ~]$ ls -l /usr/bin/vim
-rwxr-xr-x 1 root root 2734092 Feb 27 04:41 /usr/bin/vim
If you ask $ vi --version and $ vim --version you find that they are
compiled from the same source base but have very different built-in
options.
On the other hand, OpenSUSE 10.2 has the following chain of symlinks,
all leading to the same place:
/bin/vi -> /bin/vim
/usr/bin/vi -> /usr/bin/vim -> /bin/vim
I bet that Debian has yet another way of doing this, but I don't have
one easily to hand.
carl
Isn't Knoppix based on Debian?
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list