Hacker News new | ask | show | jobs
by majke 928 days ago
I love it. I did something very similar but for command line escaping. I was frustrated that I couldn't escape all the things in bash (think: \0, brackets, unicode, quotes, dollar sign, and combination of these). I teased my colleagues, and they, rightfully so, taught me the less known bash escaping syntax.

Here's the python script if you want to test your bash-escaping powers:

https://gist.githubusercontent.com/majek/c65d1ef2686f00810c1...

   $ python3 shellgame.py 
   [ ] Received parameters: repr=[]
   [+] Let's start the game!
   Level 1: Run me with parameters: repr=['a']
1 comments

unvis(1) has been useful since last century for avoiding needing to know how to escape all the things...