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 Touch seeded packages, which is subscribed to at-spi2-core in Ubuntu. https://bugs.launchpad.net/bugs/1665878 Title: Nautilus scripts can't handle file/foldernames containing % character Status in at-spi2-core package in Ubuntu: New Bug description: 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)" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/at-spi2-core/+bug/1665878/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp