Explorar el Código

math commands

master
Anthony Fadly hace 1 año
padre
commit
523ae63eb4
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12
    0
      sep19-more-commands.md

+ 12
- 0
sep19-more-commands.md Ver fichero

@@ -58,3 +58,15 @@ $ cd /tmp && ( ls; exit 0 ) # run ls and exit in subshell

( ls; exit $? ) # exit subshell the same exit status of ls
```

## Math Commands

```
$ $((5+3)) # do 5+3

$ echo $? # exit status is 0

$ $((3-3)) # do 3+3

$ echo $? # exit status is 1 (because result is zero)
```

Cargando…
Cancelar
Guardar