[dolphin] [Bug 428180] A shell script to rename files, which works perfectly in terminal, leaves a leading space in filename
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Tue Oct 24 03:04:41 BST 2023
https://bugs.kde.org/show_bug.cgi?id=428180
fanzhuyifan at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fanzhuyifan at gmail.com
Status|REPORTED |RESOLVED
Resolution|--- |NOT A BUG
--- Comment #12 from fanzhuyifan at 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 on the CC list for the bug.
More information about the kfm-devel
mailing list