Created
November 15, 2016 10:36
-
-
Save gfldex/84af33884d323f16c83abc225e474cc9 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
use v6; | |
CATCH { default { say .^name; say .Str } } | |
# say qx{find / -print}.lines; | |
# if qx{} steps onto malformed utf8: Unable to read from 'find / -print' | |
# exit 0; | |
my $find = Proc::Async.new(|<find / -print>); | |
$find.stdout.tap(-> $line { | |
CATCH { default { say .^name } } | |
print $line | |
}); | |
$find.stderr.tap(-> $line { | |
CATCH { default { say .^name } } | |
# put "FAIL: $line" | |
}); | |
my $promise = $find.start; | |
await $promise; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/mnt/storage/media/mods/WAI-Unhandled exception in code scheduled on thread 3
Malformed UTF-8
in any at /usr/local/src/rakudo/install/share/perl6/runtime/CORE.setting.moarvm line 1
in method consume-available-chars at /usr/local/src/rakudo/install/share/perl6/runtime/CORE.setting.moarvm line 1
in block at /usr/local/src/rakudo/install/share/perl6/runtime/CORE.setting.moarvm line 1