Differences between revisions 3 and 4
Revision 3 as of 2017-10-21 18:44:41
Size: 625
Comment:
Revision 4 as of 2017-10-21 19:02:45
Size: 625
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
==== Invocation Option C ==== ==== Invocation Option c ====

1. Invocation Option c


-c [options] -- CommandString [ARG0 [ARG...]]

  • commands are read from the first non-option argument (required)
  • $0 is set as the second non-option argument defaulting to "bash"

  • all remaining non-option arguments are assigned to the positional parameters starting at $1

  • [[ $- =~ c ]] will return true

bash/invocation/option/c (last edited 2017-10-21 19:02:45 by Robert Robertson)