Public bug reported:
This bug affects Ubuntu 14.04.5 and 16.04.1, most likely all others
If a file/foldername contains the % character, the script won't run as espected
if you use $1 or $@ to get the arguments for the script:
If the file name is 'filename %123.xxx' you will get 'filename 23.xxx' as the
argument $1.
The bug can be demonstated with this simple script:
#!/bin/bash
#path: ~/.local/share/nautilus/scripts
zenity --window-icon=info --info --title="Info" --text="If there is a % in the
filename, you can see than \
here goes something wrong: \n\n'$1'\n'$(echo
${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS##*/})' (this is like it should be)"
** Affects: at-spi2-core (Ubuntu)
Importance: Undecided
Status: New
** Tags: argument nautilus script
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1665878
Title:
Nautilus scripts can't handle file/foldernames containing % character
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/at-spi2-core/+bug/1665878/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs