Skip to content

Instantly share code, notes, and snippets.

@abathur
Last active May 2, 2021 01:17
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 abathur/e9d2169c9d885de423ae47e3d01f3c92 to your computer and use it in GitHub Desktop.
Save abathur/e9d2169c9d885de423ae47e3d01f3c92 to your computer and use it in GitHub Desktop.
vaguely, resholve --interpreter /nix/.../bin/bash --lore lorefile --assay assayfile < nested_execer.sh
--- original
+++ resolved
@@ -1,7 +1,12 @@
+#!/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash
fargs(){
echo "nice $(type -ap file) you got there"
}
-echo wert | find $(type -p file) -name file -exec file {} + # should resolve the last
+echo wert | /nix/store/3nb6lyw2ifs1jcjw3syvmmyin4na7pml-findutils-4.7.0/bin/find $(type -p file) -name file -exec /nix/store/0wbwj0ki6zcz6c7s5crdybxh9fcnkrcl-file-5.39/bin/file {} + # should resolve the last
echo wert | fargs file # resolve none
-echo wert | exec find file # resolve none
+echo wert | exec /nix/store/3nb6lyw2ifs1jcjw3syvmmyin4na7pml-findutils-4.7.0/bin/find file # resolve none
+
+### resholve directives (auto-generated) ## format_version: 2
+# resholve: keep /nix/store/0wbwj0ki6zcz6c7s5crdybxh9fcnkrcl-file-5.39/bin/file
+# resholve: keep /nix/store/3nb6lyw2ifs1jcjw3syvmmyin4na7pml-findutils-4.7.0/bin/find
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment