3 ms·
I believe in the value of this project, OP (lihaoyi). Your example of https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftw
by vijucat 9y ago
I believe in the value of this project, OP (lihaoyi). Your example of https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftware/steam-for-linux/issues/3671 and rm -rf "$STEAMROOT/"* erasing everything when $STEAMROOT is a blank string are spot on.
I remember spending a couple of hours one weekend getting this to work in Cygwin. I lost energy to pursue it further after getting it to work, which is typical with me :-) (Then I revisit things after 6 months or so, with some luck and free time).
Anyway, here are my notes from that attempt, in case someone else runs into the same issues:
a) I fixed the height and width in ammonite/repl/FrontEndUtils.scala so that it doesn’t go down the hell hole of Cygwin tput and tty issues
b) hard-coded repl.frontEnd() = ammonite.repl.FrontEnd.JLineUnix in ammonite/shell/Configure.scala
c) sbt '~shell/test:run' to run the fully-loaded REPL
- Kubuxu 9y agoI like scala too but I have to say, it is a bit on a heavy side when it comes to scripting. re: the rm -rf "$STEAMROOT/"* there is much simpler way to avoid it: set -euo pipefail IFS=$'\n\t' This would prevent this bug and many others. For whole overview on that see: http://redsymbol.net/articles/unofficial-bash-strict-mode/ http://redsymbol.net/articles/unofficial-bash-strict-mode/
- vijucat 9y agoThanks, that's a good one!