in reply to Re: How to include a doublequoted string into a backticked expression?
in thread How to include a doublequoted string into a backticked expression?
The problem is linux shell does its own interpolationYes, Anonymous Monk - you were spot-on in your analysis.
For the actual solution to my problem, this means:$ a="Hello" $ echo $a Hello $ echo "$a" Hello $ echo '"$a"' "$a" $ echo "'"$a"'" 'Hello' $ echo ""'"$a"'"" "$a"
my $command = qq/egrep "'"^$lemma:"'" \/home\/lexicon/; my $lexical_entry = `$command`;
|
|---|