Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ PS1=""
- PROMPT_COMMAND='echo -n "Prompt MYSECRETNUMBERSETBYEXPECT (last exit $?) "'
- Prompt MYSECRETNUMBERSETBYEXPECT (last exit 0) ls /tmp/o
- file.txt
- Prompt MYSECRETNUMBERSETBYEXPECT (last exit 0) rm /tmp/a/donotexist
- rm: impossible de supprimer '/tmp/a/donotexist': No such file or directory
- Prompt MYSECRETNUMBERSETBYEXPECT (last exit 1) env | grep SECRET
- Prompt MYSECRETNUMBERSETBYEXPECT (last exit 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement