aboutsummaryrefslogtreecommitdiff
path: root/lib/os.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os.nom')
-rw-r--r--lib/os.nom1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/os.nom b/lib/os.nom
index 8bbc7c5..03d9657 100644
--- a/lib/os.nom
+++ b/lib/os.nom
@@ -43,6 +43,7 @@ action [..]
write to file %filename %text, to file %filename write %text
write %text to file %filename
..:
+ assume (%filename != "stdin") or barf "Cannot write to stdin"
lua> ".."
local file = io.open(\%filename, 'w')
file:write(\%text)