Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 15:12:23 +0000 (GMT)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        GABEL JULIEN <Julien.GABEL@sgam.com>
Cc:        "'Scott M. Nolde'" <scott@smnolde.com>, Joe & Fhe Barbish <barbish@a1poweruser.com>, FBSDQ <questions@freebsd.org>
Subject:   RE: Simple script ?
Message-ID:  <Pine.GSO.4.44.0202251511210.13403-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <D7444C754148D411842E00902740F56D0395848B@MAILBOX2>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Feb 2002, GABEL JULIEN wrote:

> $ cat getpackage
> #!/bin/sh
> ftp -a -v
> ftp5.FreeBSD.org:/pub/FreeBSD/releases/i386/4.4-RELEASE/packages/$1

Slap double-quotes around the $1; that way, if the command's invoked
like this:

	getpackage "a path containing a space"

the ftp command won't get mangled.


-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
Prolog in JavaScript: http://tribble.ilrt.bris.ac.uk/~cmjg/logic/prolog-latest


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0202251511210.13403-100000>