From owner-freebsd-questions Thu Dec 12 4:59:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8547137B401 for ; Thu, 12 Dec 2002 04:59:46 -0800 (PST) Received: from fep3.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0029E43EC5 for ; Thu, 12 Dec 2002 04:59:45 -0800 (PST) (envelope-from pnmurphy@cogeco.ca) Received: from earth.upton.net (d141-18-230.home.cgocable.net [24.141.18.230]) by fep3.cogeco.net (Postfix) with SMTP id C0CA12345 for ; Thu, 12 Dec 2002 07:59:39 -0500 (EST) Date: Thu, 12 Dec 2002 07:59:22 -0500 From: Paul Murphy To: FreeBSD Questions Subject: Shell variables Message-Id: <20021212075922.13985ff8.pnmurphy@cogeco.ca> X-Mailer: Sylpheed version 0.8.6claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.iJ?T)6W:)fWGvf" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.iJ?T)6W:)fWGvf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am having trouble understanding what is the difference between "$variable" and "${variable}". I have read sh(1) and understand than ${} is a "parameter" and can contain more than just a variable, but browsing through /etc/rc I see lots of "${variable}" (i.e. "case ${svc_val} in"). Is this just for readability or is there some functional difference? -- Cogeco ergo sum --=.iJ?T)6W:)fWGvf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9+IgxTv5Mxsi/WPMRAi+mAKCQd+mqybiDheSeGQJ/xKLfyc5NHACfd7BR RW2iv7/2LOFv5kT1xMrrh0k= =hwm4 -----END PGP SIGNATURE----- --=.iJ?T)6W:)fWGvf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message