Bug 21288

Summary: Bug in editor invocation
Product: [Retired] Red Hat Linux Reporter: martin
Component: lessAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
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: 2000-11-23 21:47: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:

Description martin 2000-11-23 21:47:40 UTC
When you view a file with a space in name and press 'v' to edit it,
it runs the editor with the first part of name only.
(instead of 'hello world' it opens 'hello')

Some more funny example is 

$ less "yup; rm work.c"
(if you press 'v' then, it will remove your work.c)

It seems that less uses system() instead of fork() & exec() ...

Comment 1 Karsten Hopp 2000-11-27 15:14:14 UTC
Setting your $LESSEDIT to "%E ?lm+%lm. '%f'" should help. I'll fix this in the
Rawhide package.

Thanks for the bugreport !
   Karsten