| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| In-Reply-To: | <Pine.GSO.4.61.0410061338090.24166@slinky.cs.nyu.edu> |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| Subject: | RE: Mailing list redirection etiquette? |
| Message-ID: | <OFF858706F.C9053352-ON86256F25.006937E7-86256F25.00697084@us.ibm.com> |
| From: | Fred Kulack <kulack AT us DOT ibm DOT com> |
| Date: | Wed, 6 Oct 2004 14:11:39 -0500 |
| X-IsSubscribed: | yes |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |