Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/sh.sh Secret

Created February 23, 2018 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/47f686c949c19d48c787bfd3569b9e9c to your computer and use it in GitHub Desktop.
Save zoffixznet/47f686c949c19d48c787bfd3569b9e9c to your computer and use it in GitHub Desktop.
$ git clone https://github.com/timo/json_fast .
Cloning into '.'...
remote: Counting objects: 597, done.
remote: Total 597 (delta 0), reused 0 (delta 0), pack-reused 597
Receiving objects: 100% (597/597), 91.85 KiB, done.
Resolving deltas: 100% (259/259), done.
$ ls
lib LICENSE META6.json README.md t xt
$ git remote -v
origin https://github.com/timo/json_fast (fetch)
origin https://github.com/timo/json_fast (push)
$ git pull
Already up-to-date.
$ git status
# On branch master
nothing to commit (working directory clean)
$ zef uninstall JSON::Fast
===> Uninstalled from /home/zoffix/rakudo/install/share/perl6/site
JSON::Fast:ver<0.9.9>
$ zef uninstall JSON::Fast
!!!> Found no matching candidates to uninstall
$ perl6 -e 'use JSON::Fast; use Test; is-deeply 「"\/"」.&from-json, 「/」, "backslashed slashes get unescaped"'
===SORRY!===
Could not find JSON::Fast at line 1 in:
/home/zoffix/.perl6
/home/zoffix/rakudo/install/share/perl6/site
/home/zoffix/rakudo/install/share/perl6/vendor
/home/zoffix/rakudo/install/share/perl6
CompUnit::Repository::AbsolutePath<53444448>
CompUnit::Repository::NQP<32465072>
CompUnit::Repository::Perl5<32465112>
$ perl6 -Ilib -e 'use JSON::Fast; use Test; is-deeply 「"\/"」.&from-json, 「/」, "backslashed slashes get unescaped"'
not ok 1 - backslashed slashes get unescaped
# Failed test 'backslashed slashes get unescaped'
# at -e line 1
# expected: "/"
# got: "\\\\/"
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment