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: Fri, 12 Dec 2014 17:24:58 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Hello Gabriel,

Gabriel Farrell wrote:
I've noticed that trailing spaces are not ignored when a filename is input.

I think this is the (correct) behaviour of all editors and commands in general. I have tried moe, joe and nano, and none of them ignore trailing, leading or embedded spaces in filenames. Not even when the name is specified in the command line:

$ touch a.txt
$ ed "a.txt "
a.txt : No such file or directory
$ rm "a.txt "
rm: cannot remove `a.txt ': No such file or directory
$ rm a.txt
$

This has become an annoyance because I'm often wrapping ed in rlfe, which
appends a space to the filename upon tab completion.

Then I guess the bug is in rlfe (whatever it is).


Best regards,
Antonio.



reply via email to

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