bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] Trailing spaces in filenames


From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] Trailing spaces in filenames
Date: Tue, 30 Dec 2014 20:01:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

John Cowan wrote:
You are confusing two things here. Adding a space after doing
filename completion so that you can type the next argument is fine.
What is a fatal error is to pass such trailing space to the
application. It is rlfe the one that should be stripping the
trailing space, as the shell does, not ed.

That would require readline to keep track of which trailing spaces
were supplied by completion and which were not,

Not at all. Spaces that must not be stripped by rlfe can be escaped:

's/foo/foo\ '


Regards,
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]