In the Korn shell, both reverse ticks and quotation marks can be left unsurpassed, the tokenizer will try to guess where it will end, and accordingly match them.
Examples:
/home/ufierro # echo "`echo ah" + echo ah + echo ah ah /home/ufierro # echo `echo 'hello world` + echo 'hello world' + echo hello world hello world
Note that both examples show a different case for the behavior described above. The first example shows how, during parsing, one reverse tick in double quotes was completed, and the second example shows how one quote inside the reverse ticks was completed.
Ulises André Fierro
source share