Hey Guys,
I was playing around with the Script Filter XML a bit and now I have the following script, which does not work, but I cant tell why:
cat << EOB
echo "<?xml version='1.0'?>"
echo "<items>"
for line in $(gpg --list-keys | grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b")
do
echo "<item uid='$line' arg='$line'>"
echo "<title>$line</title>"
echo "</item>"
done
echo "</items>"
EOB
Strange thing is: When I execute the script in my bash an copy the output as xml in the ScriptFilter, everything works fine. I suspect escaping to be the problem, but can not get it to work...
Any ideas?