I can do
bash -x mysellh.sh
to see the commands as they are being executed, but I don't see the variables replaced with their values. For instance, if I have in the shell script:
screen -d -m sh -c 'RAILS_ENV="$R_ENV" bundle exec rake sunspot:solr:reindex[500] > "$PROJECT_DIR"/solr/indexing_out.txt'
I will see:
+ screen -d -m sh -c 'RAILS_ENV="$R_ENV" bundle exec rake sunspot:solr:reindex[500] > "$PROJECT_DIR"/solr/indexing_out.txt'
Even though I've already declared earlier:
R_ENV=test
Is there an option to do what I want?