query: How to capture "$?" before tee smashes it?
positive_passages.docid: 80410
positive_passages.text: Get exit status of process that's piped to another
negative_passages.docid: 21907
negative_passages.text: Why is "\?" an escape sequence in C/C++?
negative_passages.docid: 88964
negative_passages.text: dollar-terminated strings
negative_passages.docid: 57007
negative_passages.text: What is the meaning of $? in a shell script?
negative_passages.docid: 42368
negative_passages.text: Why does the exclamation mark `!` sometimes upset bash?
negative_passages.docid: 23092
negative_passages.text: What does "$$" mean in the shell?
negative_passages.docid: 123684
negative_passages.text: Test for non-zero length string in Bash: [ -n "$var" ] or [ "$var" ]
negative_passages.docid: 140577
negative_passages.text: `tee` for commands
negative_passages.docid: 17169
negative_passages.text: How to: The ~ operator?
negative_passages.docid: 94622
negative_passages.text: How does one extract a command's exit status into a variable?
negative_passages.docid: 7705
negative_passages.text: Replace $ with £ using cat Command
negative_passages.docid: 72914
negative_passages.text: How to replace ${} placeholders in a text file?
negative_passages.docid: 25478
negative_passages.text: What does ${1+"$@"} mean in a shell script, and how does it differ from "$@"?
negative_passages.docid: 138961
negative_passages.text: In Bash, how can I check if a string begins with some value?
negative_passages.docid: 102882
negative_passages.text: In bash, how do I escape an exclamation mark?
negative_passages.docid: 74090
negative_passages.text: $_ vs !$. Last argument of the preceding command and output redirection
negative_passages.docid: 65149
negative_passages.text: How to get bash to stop escaping $ during tab completion?