I installed Swift for Ubuntu 18.04 on Windows (WSSL) using the instructions on the swift website: https://swift.org/download/#using-downloads

It seems that it's recognizing the version, but when I just type swift to enter the REPL, it seems to get stuck and I can't exit out of the shell without just quitting the terminal:

[email protected]:~$ swift --version
Swift version 5.0.1 (swift-5.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu
[email protected]:~$ swift
let x = 5;
print(x)
;
exit
^C

:q
:q
exit
^C

Any ideas why this might happen?

0 Answers