Date: Tue, 15 Jan 2008 10:20:22 -0800 From: Chuck Swiger <cswiger@mac.com> To: =?UTF-8?Q?Nikola_Le=C4=8Di=C4=87?= <nikola.lecic@anthesphoria.net> Cc: FreeBSD-questions@FreeBSD.org, Nerius Landys <nlandys@gmail.com> Subject: Re: sysinstall and bsdlabel/boot Message-ID: <780F066B-1F42-479C-800F-3A9895E6DE62@mac.com> In-Reply-To: <20080115190849.622c2ab9@anthesphoria.net> References: <560f92640801142157n7194be23u8c4eac084ed474c9@mail.gmail.com> <20080115144508.204f0c77@anthesphoria.net> <560f92640801150852s32ee4b24ud6b19ad8b8211f0c@mail.gmail.com> <20080115190849.622c2ab9@anthesphoria.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 15, 2008, at 10:08 AM, Nikola Lečić wrote:
>> P.S. I hope I'm doing the quoting thing ``properly'', not
>> "incorrectly".
>
> IMHO there is neither FreeBSD- nor Linux-specific mails, and there
> shouldn't be such thing. These mails are written in English, so it
> seems that neither of us is right: quotes should be “like this”,
> not
> "like this" or ``like this''.
While I would agree with the above, Unix shells make a distinction
between different types of quote characters, and if you are talking
about command-line programming or scripts, there is an advantage to
quoting things in a fashion that the shell will be happy with.
Double-quotes (") permit variable, history, and alias expansion of the
quoted terms, whereas single forward quotes (') give you a string
literal and disable expansion. Backquotes (`) are used to perform
command substitution and are a synonym for "$(command)" syntax;
something like "echo `ls`" would be a simple example.
Regards,
--
-Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?780F066B-1F42-479C-800F-3A9895E6DE62>
