Problem while sending a set of files with "%F" to an extended action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Marlin |
New
|
Undecided
|
Unassigned |
Bug Description
Given 2 files named (with and without spaces in them):
"test ing long.txt"
"testinglong.txt"
And an extended action defined as:
[Extended Action Entry]
Name=Testing
Icon=
Description=
MimeType=all
Exec=$HOME/
Receiving "%F" in an executable shell script "$HOME/
#!/bin/sh
for FILE in "$@" ; do
path=${FILE%/*}
new=$(echo ${FILE##*/} | sed 's, ,_,g')
/usr/bin/
done
The bug is:
While running this extended action against each file on its own will produce the expected results,
running it against BOTH files at the same time will give wrong and unexpected results.
Various permutations of "$@" and $@, either in the extended action Exec or in the shell script, will each bring a different flavor of the anomaly.