Skip to content

Commit 23fc62d

Browse files
authored
Tolerate missing PWD var (#138)
Tolerate missing PWD in 010_prelude.eu
1 parent 656cadf commit 23fc62d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

harness/test/010_prelude.eu

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tests: {
1111
}
1212

1313
environment: {
14-
pwd: io.env lookup(:PWD)
14+
pwd: io.env lookup-or(:PWD, "/")
1515
launch-time: io.epoch-time
1616

1717
pass: [ pwd str.matches?(".*/.*")

harness/test/019_env.eu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# requires prelude
22

33
'~': io.env.HOME
4-
pwd: io.env.PWD
4+
lang: io.env.LANG
55

66
RESULT: if((io.env lookup-or(:HOME, "~")) != "~", :PASS, :FAIL)

0 commit comments

Comments
 (0)