Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • So, is this the final list of words (excluding $0, which should be passed to ARGV[0]) that are passed to the ARGV[] array on a per-index basis? Commented Feb 9 at 22:59
  • Actually, I think ARGV[0] becomes $0. Not sure what you mean by "per index basis", the whole array is passed and the $N syntax references it. Commented Feb 9 at 23:07
  • 2
    Start your educational journey with man execve and its "See also"s. Commented Feb 10 at 0:55
  • Along with the positional parameters like $1 don't forget the special parameters $@, $*, and $#. There may be equivalents among the shell variables with names that start with BASH_. Commented Feb 10 at 7:10