Skip to content

Instantly share code, notes, and snippets.

@rjurney
Last active March 24, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjurney/4634cf7301bace6fd849 to your computer and use it in GitHub Desktop.
Save rjurney/4634cf7301bace6fd849 to your computer and use it in GitHub Desktop.
Why can't I do a multi-line bash quote?
read -d '' sbt_text=$(cat <<"EOF"
#!/bin/bash
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M";
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
EOF
)
echo $sbt_text
#!/bin/bash > SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"; > java -jar /sbt-launch.jar ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment