Created
October 23, 2018 19:42
-
-
Save washort/e23384f9ad3a324123c184e67aad51b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Doesn't use 'unittest' because of dependency on `makeProcess`. | |
import "lib/codec/utf8" =~ [=> UTF8 :DeepFrozen] | |
import "lib/streams" =~ [=> collectBytes :DeepFrozen] | |
exports (main) | |
def main(_argv, => makeProcess) as DeepFrozen: | |
def compile(): | |
def pr := makeProcess(b`/nix/store/wm8va53fh5158ipi0ic9gir64hrvqv1z-coreutils-8.29/bin/ls`, [b`ls`, b`-lR`], | |
[].asMap(), | |
"stdout" => true) | |
return collectBytes(pr.stdout()) | |
return when (def x := compile()) -> | |
traceln(x.size()) | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment