| 1350 | } |
| 1351 | |
| 1352 | static bool sh_numberish(const char *v) { |
| 1353 | if (!v[0] || v[0] < '0' || v[0] > '9') { |
| 1354 | return false; |
| 1355 | } |
| 1356 | for (const char *p = v; *p; p++) { |
| 1357 | if (!((*p >= '0' && *p <= '9') || *p == '.' || strchr("smhd", *p))) { |
| 1358 | return false; |
| 1359 | } |
| 1360 | } |
| 1361 | return true; |
| 1362 | } |
| 1363 | |
| 1364 | /* Word i of argv is an option, assignment or count a wrapper takes before |
| 1365 | * the program: by its value, or -- the value unknown -- by its text |
no outgoing calls
no test coverage detected