https://bugs.kde.org/show_bug.cgi?id=428180

fanzhuyi...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fanzhuyi...@gmail.com
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |NOT A BUG

--- Comment #12 from fanzhuyi...@gmail.com ---
I was able to reproduce the behavior the reporter mentioned (the `rename`
program they used is called `perl-rename` on many distros).

Examining the issue further, I noticed that the filename passed to the script
is the full path, i.e., something like `/home/user/   a truly
<horrible>|"awful" "$'\n'"name     with a newline and *globs*, and even a
'single' quote or two?!   .txt`.

Hence, the white space is no longer at the beginning at the string, and will no
longer be removed by the script the reporter provided. 
As passing in the full path is intended behavior, I am closing this report.

As an alternative, the reporter could consider using another script that can
handle taking in full paths to files, and intelligently removing spaces in
front.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to