Guest User

Untitled

a guest
Nov 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cat << EOF > reportLineSeparator.sc
  4. #!/usr/bin/env scala
  5. val bytes = sys.props("line.separator").map { _.toInt }.mkString(" ")
  6. printf("line.separator bytes: %sn",bytes)
  7. EOF
  8. chmod +x reportLineSeparator.sc
  9. #JAVA_OPTS=-Dline.separator=$'n'
  10. reportLineSeparator.sc
  11.  
  12. export JAVA_OPTS=-Dline.separator=$'n'
  13.  
  14. execCommand
  15. "${JAVACMD:=java}"
  16. $JAVA_OPTS
  17. "${java_args[@]}"
  18. "${classpath_args[@]}"
  19. -Dscala.home="$SCALA_HOME"
  20. $OVERRIDE_USEJAVACP
  21. $WINDOWS_OPT
  22. scala.tools.nsc.MainGenericRunner "$@"
  23.  
  24. $ reportLineSeparator.sc
  25. line.separator bytes: 10
Add Comment
Please, Sign In to add comment