Red Hat Bugzilla – Bug 154321
Vim profile script is still broken
Last modified: 2007-11-30 17:11:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Firefox/1.0.2 Fedora/1.0.2-3
Description of problem:
[ 100 -le 100 ] && return
What is this supposed to accomplish? It's always true,
which defeats the purpose of the rest of the script.
Prior to this the script was checking if I'm root,
and disabling the alias for root - I couldn't figure
out why it does that either.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
>Description of problem:
> [ 100 -le 100 ] && return
this is a bug in the spec file
it should read
cat >$RPM_BUILD_ROOT/etc/profile.d/vim.sh <<'EOF'
> Prior to this the script was checking if I'm root,
> and disabling the alias for root - I couldn't figure
> out why it does that either.
Maybe because of not trusting modelines?
This could be done with alias vi=vim -c "set nomodeline"
So why is the alias disabled for system users/root?
Created attachment 112926 [details]
patch fixing unwanted expansion
expansion fixed in in vim-6.3.068-2