Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2000 15:00:39 -0400
From:      Paul Chvostek <paul@it.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: backticks, quotes, and doublequotes---
Message-ID:  <20000409150039.B36746@flarn.it.ca>
In-Reply-To: <20000407183110.B238@parish>; from Mark Ovens on Fri, Apr 07, 2000 at 06:31:10PM %2B0100
References:  <004d01bfa046$aab66be0$fc69a0d0@linkfast.net.linkfast.net> <20000407183110.B238@parish>

next in thread | previous in thread | raw e-mail | index | archive | help

The various quotes are also often shell references.  If I want to
specify something I said, it would be "something I said".  If I wanted
to refer to a shell command, it would be `echo $this`, because that's
how you'd execute a subshell in a command line.  For laughs, try typing:

	echo `ls -la`

Many people seem to use a pair of back ticks and a pair of apostrophes
as the left and right sides of double quotes, since ASCII doesn't have
these characters itself.

You can `man sh` for more details on how single and double quotes work.
To get to the specific section of the man page, '/Quoting'.


On Fri, Apr 07, 2000 at 06:31:10PM +0100, Mark Ovens wrote:
> 
> On Thu, Apr 06, 2000 at 11:06:24PM -0500, gh wrote:
> > Can someone explain to me why some people use backticks and double backticks
> > in, say, e-mail instead of using single quotes and double quotes?
> > 
> 
> Well, I for one use them to show text that should be typed verbatim
> (at the command prompt), for instance ``ls -l | grep foobar''. Don't
> ask me the origins of it, I use it because that's what it
> appeared to be for so I just copied everyone else. Bah, bah :)
> 
> > Thanks.
> > 
> > Issue has been intriguing, but has not led anywhere.
> > 
> > Dan
> > gh
> > 
> > 
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> 
> -- 
>    Beam me up Scottie, there's no intelligent life down here
> ________________________________________________________________
>       FreeBSD - The Power To Serve http://www.freebsd.org
>       My Webpage http://ukug.uk.freebsd.org/~mark/
> mailto:mark@ukug.uk.freebsd.org             http://www.radan.com
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
  Paul Chvostek                                            <paul@it.ca>
  Operations / Development / Abuse / Whatever      vox: +1 416 598 0000
  IT Canada                                           http://www.it.ca/



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?20000409150039.B36746>