Ich habe keine Ahnung, warum die folgende Zeile 1, während die nachfolgenden Ausführungen von ((count++))
zurückkehrt sind 0.Warum ((count ++)) return 1 Exit-Code erstes Mal läuft
[[email protected] ~]$ count=0
[[email protected] ~]$ echo $?
0
[[email protected] ~]$ count++
-bash: count++: command not found
[[email protected] ~]$ (count++)
-bash: count++: command not found
[[email protected] ~]$ ((count++))
[[email protected] ~]$ echo $?
1 <------THIS WHY IS IT 1 AND NOT 0??
[[email protected] ~]$ ((count++))
[[email protected] ~]$ echo $?
0
[[email protected] ~]$ ((count++))
[[email protected] ~]$ echo $?
0
[[email protected] ~]$ echo $count
3