kurahaupo 1629454347 learn If you have n layers of shells parsing and reparsing a command, you will need (2ⁿ-1) backslashes to escape each special character. This particularly includes eval cmd99,99, ssh host99,99 cmd99,99, sh -c cmd99,99, and su -c cmd99,99. ormaaj 1629602219 forget ormaaj 1629602334 learn learn If you have n layers of shells parsing and reparsing a command, you will need (2ⁿ-1) backslashes to escape each special character if only backslashes are used. This includes eval cmd, `ssh host cmd`, `sh -c cmd`, `su -c cmd`, etc. Fun fact: ksh93's %q representation is more efficient than bash's. See also: !evalball