Mailinglist Archive: opensuse (3996 mails)

< Previous Next >
Re: [SLE] wget question
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Tue, 21 Sep 2004 12:46:11 -0700
  • Message-id: <200409211246.11043.rschulz@xxxxxxxxx>
Leen,

On Tuesday 21 September 2004 03:32, Leendert Meyer wrote:
> ...
>
> wget
> 'http://prdownloads.sourceforge.net/abiword/abiword-2.0.11.tar.gz?use_m
>irror=unc' yields another HTML-page, so clearly this is not the right
> URL to use with wget. Put quotes around the URL because of the '?'.

Let's not encourage magical thinking w.r.t. shell glob characters.

The question mark (or an asterisk or a sequence of characters enclosed in
square brackets) will only be changed by the shell's glob processing when
the full string in which it appears can be replaced by the name of an
existing entity in the file system (and one that can be referred to
relative to the current directory, whenever the argument string does not
start with a slash).

If the shell is set to reject glob patterns that don't match an existing
file system entity, then you'll get an explicit error from the shell. If
not, the unaltered pattern will be passed on as an argument to the
program.

So in cases like this, the likelihood that such an argument will be
altered silently by shell glob processing is exceedingly remote.


> ..
>
> Cheers,
>
> Leen


Randall Schulz

< Previous Next >