Subject: | |
From: | |
Reply To: | |
Date: | Sun, 22 Jul 2007 14:02:45 +0200 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Hi Michael,
On Sun, 22 Jul 2007, Michael Mansour wrote:
> Hi,
>
> I found a vi/vim problem with SL5 i386.
I think not.
[snip]
> for SL5:
>
> # sh -x ./vim.sh
> + '[' -n '3.1.17(1)-release' -o -n '' -o -n '' ']'
> + '[' -x /usr/bin/id ']'
> ++ /usr/bin/id -u
> + '[' 0 -le 100 ']'
> + return
> ./vim.sh: line 3: return: can only `return' from a function or sourced script
> + alias vi
> + alias vi=vim
>
> has an error and doesn't work:
The code works without errors and as intended when sourced. See the error
message.
> # which vi
> /bin/vi
The alias was set in your subshell - only. If the return was a bug, the
result would actually be vi=vim for all accounts, including the low UIDs.
The root user should really be able to type the m if vim's desired.
> Should I raise a bugzilla for this for TUV?
Probably not ;-)
Not your day?
- Stephan
--
Stephan Wiesand
DESY - DV -
Platanenallee 6
15738 Zeuthen, Germany
|
|
|