From 049078ea55ee137da4672b915c5f4a0f88076c90 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Mar 2006 21:38:39 +0000 Subject: [PATCH] - allow multiple spaces in the environment variable - documentation fix --- utils/metarproxy/README | 6 +++--- utils/metarproxy/metarproxy | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/metarproxy/README b/utils/metarproxy/README index 77f6518c9..bb2e4f164 100644 --- a/utils/metarproxy/README +++ b/utils/metarproxy/README @@ -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 , 2005/1/24 +Melchior FRANZ , 2005/1/24 diff --git a/utils/metarproxy/metarproxy b/utils/metarproxy/metarproxy index 03a7b87a8..ba03eb377 100755 --- a/utils/metarproxy/metarproxy +++ b/utils/metarproxy/metarproxy @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # FlightGear METAR proxy server -# Melchior FRANZ (c) 2005, , GPL V2 +# Melchior FRANZ (c) 2005, , 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;