Skip to content

Instantly share code, notes, and snippets.

@abathur

abathur/nested_exec.diff Secret

Last active May 2, 2021
Embed
What would you like to do?
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