Created
October 20, 2016 18:02
-
-
Save jrop/264ad0cb8c53015ea628db62c26d2c56 to your computer and use it in GitHub Desktop.
Command not found
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/bash | |
prompt="$(PS1="$PS1" echo -n | bash --norc -i 2>&1)"; | |
while [ true ]; do | |
echo -n "${prompt%exit}"; | |
read line; | |
echo "-bash: $line: command not found"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment