Bug 154321

Summary: Vim profile script is still broken
Product: [Fedora] Fedora Reporter: Ivan Gyurdiev <ivg231>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ronny-rhbugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-11 09:38:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 136451    
Attachments:
Description Flags
patch fixing unwanted expansion none

Description Ivan Gyurdiev 2005-04-09 21:22:52 UTC
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):


How reproducible:
Didn't try

Steps to Reproduce:


Additional info:

Comment 1 Ronny Buchmann 2005-04-10 16:10:25 UTC
>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?



Comment 2 Ronny Buchmann 2005-04-10 16:13:10 UTC
Created attachment 112926 [details]
patch fixing unwanted expansion

Comment 3 Karsten Hopp 2005-04-11 09:38:42 UTC
expansion fixed in in vim-6.3.068-2