Created
May 29, 2025 22:35
-
-
Save sambacha/cd76c2c194f5ce0485f8ee91fede79cf to your computer and use it in GitHub Desktop.
allpass and anypass <https://research.swtch.com/bisect#interesting_lessons_learned>
This file contains hidden or 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
#!/bin/sh | |
n=$1 | |
shift | |
for i in $(seq $n); do | |
"$@" || exit 1 | |
done |
This file contains hidden or 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
#!/bin/sh | |
n=$1 | |
shift | |
for i in $(seq $n); do | |
"$@" && exit 0 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment