Getting CWD
EricKuck opened this issue · comments
Eric Kuck commented
I don't believe there's currently a way for a script to see which directory it's being run from. Using Path.cwd
gives something like /Users/me/Library/Developer/swift-sh.cache/scriptname
. Is there a way to get the terminal's current directory?
Max Howell commented
Will fix today
Max Howell commented
Fixed and deployed in 1.4.2. Thanks for the report!