Does it bother anyone else that $# in shell scripts and argc in C programs differ by one?
Ikke-kategoriseret
3
Indlæg
3
Posters
6
Visninger
-
Does it bother anyone else that $# in shell scripts and argc in C programs differ by one? That has always bothered me.
-
Does it bother anyone else that $# in shell scripts and argc in C programs differ by one? That has always bothered me.
@jef If you think about it wrong, it's actually off by two:
$#is bash'sargcminus 2. -
@jef If you think about it wrong, it's actually off by two:
$#is bash'sargcminus 2.