-j N / -l N: N is a count. */
| 1868 | |
| 1869 | /* -j N / -l N: N is a count. */ |
| 1870 | static bool sh_make_count(const char *v) { |
| 1871 | if (!v || !v[0]) { |
| 1872 | return false; |
| 1873 | } |
| 1874 | for (const char *p = v; *p; p++) { |
| 1875 | if (!(*p == '.' || (*p >= '0' && *p <= '9'))) { |
| 1876 | return false; |
| 1877 | } |
| 1878 | } |
| 1879 | return true; |
| 1880 | } |
| 1881 | |
| 1882 | /* -C DIR after `base`: DIR from base, an absolute (anchored) DIR alone. */ |
| 1883 | static const char *sh_make_join(CBMArena *a, const char *base, const char *dir) { |