RE: gurl (call browser and it an URL)

2006-02-21 Thread Dave Korn
On 20 February 2006 23:04, Joe Smith wrote: > "Igor Peshansky" wrote: >> True, except cygstart won't do unconditional 'www*'->'http://www*' >> translation if a file with that name exists (e.g., try "touch >> www.cygwin.com && cygstart www.cygwin.com"). >> Igor > > Cmd's 'start' command is exactly

Re: gurl (call browser and it an URL)

2006-02-20 Thread Joe Smith
"Igor Peshansky" wrote: True, except cygstart won't do unconditional 'www*'->'http://www*' translation if a file with that name exists (e.g., try "touch www.cygwin.com && cygstart www.cygwin.com"). Igor Cmd's 'start' command is exactly the same in this respect. I'm betting that the 'run' apple

Re: gurl (call browser and it an URL)

2006-02-16 Thread Igor Peshansky
On Thu, 16 Feb 2006, Brian Dessent wrote: > zzapper wrote: > > > # c:/progra~1/opera75/opera.exe $url > > c:/Program\ Files/internet\ explorer/iexplore $url & > > } > > Yuck. No need to do this, just "cygstart http://www.cygwin.com"; or > "cygstart www.cygwin.com". This will launch the URL in wh

Re: gurl (call browser and it an URL)

2006-02-16 Thread Brian Dessent
Brian Dessent wrote: > Yuck. No need to do this, just "cygstart http://www.cygwin.com"; or > "cygstart www.cygwin.com". This will launch the URL in whatever browser > the user has configured to handle http://, rather than hardcoding it. > This is equivalent to Start -> Run. And, on top of that,

Re: gurl (call browser and it an URL)

2006-02-16 Thread Brian Dessent
zzapper wrote: > # c:/progra~1/opera75/opera.exe $url > c:/Program\ Files/internet\ explorer/iexplore $url & > } Yuck. No need to do this, just "cygstart http://www.cygwin.com"; or "cygstart www.cygwin.com". This will launch the URL in whatever browser the user has configured to handle http://,

gurl (call browser and it an URL)

2006-02-16 Thread zzapper
Hi > gurl www.cygwin.com or just gurl if url already in paste buffer > gurl function gurl() { # Go to URL # description : Open URL in browser if no parameter use paste buffer if [ $# -gt 0 ] then url=$1 else url=$(getclip) fi if [[ "$url" = www* ]] then # add http:// prefix if required url="http