]> git.mxchange.org Git - flightgear.git/commitdiff
- allow multiple spaces in the environment variable
authormfranz <mfranz>
Thu, 9 Mar 2006 21:38:39 +0000 (21:38 +0000)
committermfranz <mfranz>
Thu, 9 Mar 2006 21:38:39 +0000 (21:38 +0000)
- documentation fix

utils/metarproxy/README
utils/metarproxy/metarproxy

index 77f6518c9691948bd2fc7ad7c82638e963dbcaee..bb2e4f1645f59330bbabc39b7d12d63edc154d8d 100644 (file)
@@ -88,11 +88,11 @@ systems, and is, for instance, used by the lynx browser), or none if
 unset. To set a particular proxy server for HTTP download, use one of
 these methods:
 
-- set http_proxy globally:     EXPORT http_proxy=http://localhost:3128/
+- set http_proxy globally:     export http_proxy=http://localhost:3128/
 - or on the command line:      $ http_proxy=http://localhost:3128/ metarproxy
 - unset http_proxy:            $ http_proxy= metarproxy
 - use the command line option: $ metarproxy --proxy=http://localhost:3128/
-- set the option globally:     EXPORT METARPROXY="-yhttp://localhost:3128"
+- set the option globally:     export METARPROXY="-yhttp://localhost:3128"
 
 
 
@@ -277,5 +277,5 @@ stations:
 
 
 $Id$
-Melchior FRANZ <mfranz@aon.at>, 2005/1/24
+Melchior FRANZ <mfranz # aon : at>, 2005/1/24
 
index 03a7b87a8b109bb6406ff74d9244299092daff35..ba03eb377e9297458857240ba8ee3085c22246c0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 # FlightGear METAR proxy server
-# Melchior FRANZ (c) 2005, <mfranz@aon.at>, GPL V2
+# Melchior FRANZ (c) 2005, <mfranz # aon : at>, GPL V2
 # $Id$
 #
 # typical use
@@ -109,7 +109,7 @@ sub parse_options()
                return $ARGV[0];
        }
        my $mode = 4;
-       unshift @ARGV, split / /, $ENV{'METARPROXY'} if defined $ENV{'METARPROXY'};
+       unshift @ARGV, split /\s+/, $ENV{'METARPROXY'} if defined $ENV{'METARPROXY'};
        while (1) {
                $_ = $ARGV[0];
                defined $_ or last;