This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Mailing list redirection etiquette?


Dang...  Had a "multiple code iterations while posting and trying to beat 
the next guy" bug. 
        $qry.=" " should have been posted as $qry.="%20"
Sigh....
Is this thread dead yet?

Fixed:

google () {
    qry=$(perl -mCGI -e 'undef $qry; for ($i=0; $i<=$#ARGV; $i++) { if 
($ARGV[$i] =~ m/ /) { $ARGV[$i]="\"$ARGV[$i]\""; } if (defined $qry) 
{$qry.="%20";} $qry.=CGI::escape($ARGV[$i]); }; print "$qry\n";' $@)
    url="http://www.google.com/search?q=$qry";;
    echo "Starting: $url"; cygstart -o "$url" >/dev/null
}

> google "oh what the hell" is this
Starting: 
http://www.google.com/search?q=%22oh%20what%20the%20hell%22%20is%20this



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]