Bug 21288 - Bug in editor invocation
Summary: Bug in editor invocation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: less
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-23 21:47 UTC by martin
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-23 21:47:42 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.