"In C / C ++ (bash too?), The first command line argument, argv [0], is the binary file name"
Incidentally, it’s wrong. The ISO standard does not provide for such a thing.
From C99:
argc , , argv [0], ; argv [0] [0] , .
, , " ", " ". , , :
... argv [0] argv [argc-1] , , , . "
argv[0] "sleep 60" " " pax fantastic sleep ", " /bin/sleep ".
, , , .
, , Perl $0 $PROGRAM_NAME ( "" ) . . perlvar.