The first non-option argument after argv[0]. */
| 814 | |
| 815 | /* The first non-option argument after argv[0]. */ |
| 816 | static const char *sh_first_operand(const sh_argv_t *a, int from) { |
| 817 | for (int i = from; i < a->n; i++) { |
| 818 | if (a->v[i] && a->v[i][0] == '-' && a->v[i][SKIP_ONE]) { |
| 819 | continue; |
| 820 | } |
| 821 | return a->v[i]; |
| 822 | } |
| 823 | return NULL; |
| 824 | } |
| 825 | |
| 826 | /* $(dirname ..), $(basename ..), $(pwd), $(realpath ..), $(readlink -f ..), |
| 827 | * $(git rev-parse --show-toplevel). */ |
no outgoing calls
no test coverage detected