Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/src/ispry.nim b/src/ispry.nim 2index 23ad6c3..dc38a9d 100644 3--- a/src/ispry.nim 4+++ b/src/ispry.nim 5@@ -134,8 +134,8 @@ proc main() = 6 #discard spry.setBinding(newEvalWord("@"), result) 7 var output = $result 8 # Print any result 9- if output.isNil: 10- output = if suspended: "nil" else: "" 11+ if output == "" and suspended: 12+ output = "nil" 13 stdout.write(output & "\n") 14 # except: 15 # echo "Oops, sorry about that: " & getCurrentExceptionMsg() & "\n" 16diff --git a/src/spry.nim b/src/spry.nim 17index 670a280..d81bb4c 100644 18--- a/src/spry.nim 19+++ b/src/spry.nim 20@@ -87,13 +87,13 @@ for kind, key, val in getopt(): 21 of cmdEnd: assert(false) # cannot happen 22 23 if eval: 24- if filename == nil: 25+ if filename == "": 26 writeHelp() 27 else: 28 code = filename 29 else: 30 code = 31- if filename == nil: 32+ if filename == "": 33 # no filename has been given, so we use stdin 34 readAll stdin 35 else: