OS= lubuntu 12.10
When file has a space in name, just part of name is passed as parameter when defining custom command line .
1. create bash script foo.sh
echo "param1= $1" >> /tmp/pcman_test.log
2. make test files (with and without space in name): touch "/tmp/test with space.txt" "/tmp/test_without_space.txt"
3. Open both files with foo.sh script: Right click > Open with ... > Custom command line > foo.sh %f
4. /tmp/pcman_test.log for "/tmp/test with space.txt" file is
and it should be
param 1=/tmp/test with space.txt
but for "/tmp/test_without_space.txt" log is as should be:
File names should be passed with escape sequences, something like "\ "
Log in to post a comment.