LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   nested `` quotation marks (https://www.linuxquestions.org/questions/programming-9/nested-%60%60-quotation-marks-712019/)

deathalele 03-16-2009 12:39 PM

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

ta0kira 03-16-2009 12:45 PM

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

deathalele 03-16-2009 01:31 PM

Thanks a lot
Just what i needed :)


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