mirror of https://github.com/CrimsonTome/tldr.git
echo: add exit code command (#10538)
* echo: add exit code command --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Jack Lin <blueskyson1401@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>pull/23/head
parent
412c3caa8d
commit
1c4e1d0a7a
|
@ -22,3 +22,7 @@
|
||||||
- Enable interpretation of backslash escapes (special characters):
|
- Enable interpretation of backslash escapes (special characters):
|
||||||
|
|
||||||
`echo -e "{{Column 1\tColumn 2}}"`
|
`echo -e "{{Column 1\tColumn 2}}"`
|
||||||
|
|
||||||
|
- Print the exit status of the last executed command (Note: In Windows Command Prompt and PowerShell the equivalent commands are `echo %errorlevel%` and `$lastexitcode` respectively):
|
||||||
|
|
||||||
|
`echo $?`
|
||||||
|
|
Loading…
Reference in New Issue