This is a small Python script with a small test suite to analyze the "bangbang" question outside the shell.
Background information:
- Original Article: Bang Bang !! by Shadab Ahmed
- Discussion on Hacker News
Further analysis:
- The algebra of Unix command substitution by Robin Houston
Sequence in OEIS:
Current results of this script:
Number of bangbangs: [1, 2, 2, 3, 5, 17, 161, 15681, 159591041, 16866847940875521]
This script became obsolete after further analysis by Robin Houston.