LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-16-2009, 01:39 PM   #1
deathalele
Member
 
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Rep: Reputation: 30
nested `` quotation marks


is it possible to nest the `command` quotation marks.

for example
Quote:
TEST=`echo `hello_world_program``
YES i know that program is completely pointless and can just as easily be done TEST=`hello_world_program` but that's not the point

Thanks in advance
 
Old 03-16-2009, 01:45 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
You can escape them with \, or what I do is use $( ) instead for this exact reason. Escapes get pretty ugly after one layer of nesting.
Kevin Barry
 
Old 03-16-2009, 02:31 PM   #3
deathalele
Member
 
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Original Poster
Rep: Reputation: 30
Thanks a lot
Just what i needed
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of quotation marks in bash dunryc Programming 2 06-08-2008 03:24 PM
Execvp With Quotation Marks amitbern Programming 10 11-25-2005 11:28 AM
no quotation marks jdoe9898 Linux - Newbie 1 10-12-2005 04:07 AM
Quotation Marks Linux / Firefox jjdoll42 Linux - Software 6 04-19-2005 11:13 AM
Quotation marks and strings - in C lazyuser Programming 5 01-25-2005 09:14 AM


All times are GMT -5. The time now is 03:38 AM.

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