Browse Source

fix lines, stdout and stderr

master
Anthony Fadly 1 year ago
parent
commit
b83a5db343
1 changed files with 8 additions and 5 deletions
  1. 8
    5
      sep21-conditionals.md

+ 8
- 5
sep21-conditionals.md View File

@@ -2,6 +2,7 @@

```
$ man bash # open the man page for bash

1443g # go to line 1443 for conditional expressions
```

@@ -21,14 +22,16 @@ Also Correct: `ls "/tmp/foo bar"`
$ test -z "hello"

$# = 2

$@ = "-z" "hello"

$* = "-z hello"

$0 = test

$1 = -z

$2 = "hello"
```

## Stdout vs Stderr

```
echo "23" # 23 goes to stdout, 0 goes to stderr
exit "23" # 23 goes to stderr, nothing goes to stdout
```

Loading…
Cancel
Save