If you want to remove the dollar signs, don't use cat
with -e
switch. It's -e
that marks end-of-line with $. It also does other things.
Why do you want to assign a here-doc into a variable? Doesn't a normal assignment do the job more easily? For example:
stephenb@gondolin:/shared/git2/etl/appminer$ IRB="require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = \"#{ENV['HOME']}/.irb-save-history\"
"