This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Mailing list redirection etiquette?
- From: Fred Kulack <kulack at us dot ibm dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 6 Oct 2004 14:11:39 -0500
- Subject: 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/