On 13/12/2005, at 15:37, salvo wrote:
ok, but if an html page has spaces in the filename (I know this is not correct) the above command doesn't work.
Is it normal? How to correct it, please?
Spaces needs to be percent-escaped. You can change the command to:
file=${TM_FILEPATH#$HOME/Desktop} open "http://localhost/desktop%24%7Bfile// /%20}"
First we strip the $HOME/Desktop prefix (store the result in $file), then we do a global substitution when using $file.