#!/bin/sh # Open a file with firefox # License: LGPLv2 # firefox 2 now supports this so this script it now redundant. if echo $1 | grep -Eq "^/" { setglobal path = $1 } else { setglobal path = "$[pwd]/$1" } setglobal path = $[echo $path | sed 's/ /%20/g] #really should use recode or something equivalent to be more robust firefox "file://$path" #could call htmlview or equivalent here