Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-31-2003, 07:28 PM   #1
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
to all long-term *nix users

a bit off topic, but i'm sure one of you will know

why do some UNIX people quote things like this

``quoted text"

why do they use the backtick and then the quote character, never understood this exactly
Old 07-31-2003, 08:43 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,661

Rep: Reputation: 229Reputation: 229Reputation: 229
The reason is probably buried deep in the arcane syntax of script commands. When you write bash scripts parts of the commands are interpreted by bash and parts are parameters to the command and parts are data to the command. The nesting order of back ticks, double quotes, and single quotes determines which level of software does what with the gibberish you type in.

I suppose using that syntax in normal communications is a secret sign that you actually have the script syntax rules memorized.

Last edited by jailbait; 07-31-2003 at 08:46 PM.
Old 07-31-2003, 09:00 PM   #3
Registered: Aug 2002
Posts: 349

Rep: Reputation: 31
I read that they do that because they don't want to tell bash that it is the end of the quote, and before you could escape it with \" they just though `` looked close enough.
Old 07-31-2003, 10:17 PM   #4
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Actually, why I do it (when I do it, which isn't often) has nothing to do with bash scripting, it has to do with LaTeX. That's the way you make the real quotes that you see surrounding quotes in most typeset literature. " renders just like you see it here, as two small vertical ticks, whereas `` '' renders like two rotated apostrophes and two normal apostrophes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
printf unsigned long long int? blackzone Programming 9 03-04-2008 12:41 PM
Hello Linuxians (Don't know about oher term for Linux users) hitendra26 Member Intro 3 08-23-2005 03:23 PM
Good distro for long term server support chaan Linux - Distributions 2 01-20-2004 10:04 AM
Who else hates this bout *nix users? h1tman General 70 08-31-2003 04:45 PM
x term Gordon Linux - General 1 03-26-2003 10:44 PM

All times are GMT -5. The time now is 07:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration