> Unix shell handles variables abysmally. You need to help it a lot to > do the right thing. *Always* quote variables, else if they're empty > they tend to blow up on you. Thanks for the advice! Your script did work from the command line, but it was not enough when called from extract_url.pl. Anyway, I believe that the fix is as simple as adding %s to the COMMAND COMMAND /etc/urlview/url_handler.sh %s (as suggested by Kyle) without touching anything else. I thought I had attempted that before, but I guess now that I made some mistake (as also suggested by Kyle). I still don't understand why %s fixes the problem, though. Thanks everybody. Best regards, Luis
-- o W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ GPG: DD344B85, 2ADC B65A 5499 C2D3 4A3B 93F3 AE20 0F5E DD34 4B85
signature.asc
Description: Digital signature