Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wang_li
66 days ago
|
parent
|
context
|
favorite
| on:
Why bother with argv[0]?
In most of the variants of exec*() there are separate arguments for the thing to be executed and the *argv[] list. Argv[0] being the executable is just a convention. In perl $ARGV[0] is the first positional parameter. In
$ perl myscript.pl a b c
$ARGV[0] is "a".
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: