Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $ PS1=""
  2. PROMPT_COMMAND='echo -n "Prompt MYSECRETNUMBERSETBYEXPECT (last exit $?) "'
  3. Prompt MYSECRETNUMBERSETBYEXPECT (last exit 0) ls /tmp/o
  4. file.txt
  5. Prompt MYSECRETNUMBERSETBYEXPECT (last exit 0) rm /tmp/a/donotexist
  6. rm: impossible de supprimer '/tmp/a/donotexist': No such file or directory
  7. Prompt MYSECRETNUMBERSETBYEXPECT (last exit 1) env | grep SECRET
  8. Prompt MYSECRETNUMBERSETBYEXPECT (last exit 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement