flags.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. #undef FORCED_FLAG
  2. #ifdef FORCE_FLAGS
  3. #define FORCED_FLAG 1LL
  4. #else
  5. #define FORCED_FLAG 0LL
  6. #endif
  7. // basename ^<1as: ^<1as:
  8. #undef OPTSTR_basename
  9. #define OPTSTR_basename "^<1as:"
  10. #ifdef CLEANUP_basename
  11. #undef CLEANUP_basename
  12. #undef FOR_basename
  13. #undef FLAG_s
  14. #undef FLAG_a
  15. #endif
  16. // cat uvte uvte
  17. #undef OPTSTR_cat
  18. #define OPTSTR_cat "uvte"
  19. #ifdef CLEANUP_cat
  20. #undef CLEANUP_cat
  21. #undef FOR_cat
  22. #undef FLAG_e
  23. #undef FLAG_t
  24. #undef FLAG_v
  25. #undef FLAG_u
  26. #endif
  27. // chmod <2?cvfR[-cvf] <2?cvfR[-cvf]
  28. #undef OPTSTR_chmod
  29. #define OPTSTR_chmod "<2?cvfR[-cvf]"
  30. #ifdef CLEANUP_chmod
  31. #undef CLEANUP_chmod
  32. #undef FOR_chmod
  33. #undef FLAG_R
  34. #undef FLAG_f
  35. #undef FLAG_v
  36. #undef FLAG_c
  37. #endif
  38. // cmp <1>4ls(silent)(quiet)n#<1[!ls] <1>4ls(silent)(quiet)n#<1[!ls]
  39. #undef OPTSTR_cmp
  40. #define OPTSTR_cmp "<1>4ls(silent)(quiet)n#<1[!ls]"
  41. #ifdef CLEANUP_cmp
  42. #undef CLEANUP_cmp
  43. #undef FOR_cmp
  44. #undef FLAG_n
  45. #undef FLAG_s
  46. #undef FLAG_l
  47. #endif
  48. // echo ^?Een[-eE] ^?Een[-eE]
  49. #undef OPTSTR_echo
  50. #define OPTSTR_echo "^?Een[-eE]"
  51. #ifdef CLEANUP_echo
  52. #undef CLEANUP_echo
  53. #undef FOR_echo
  54. #undef FLAG_n
  55. #undef FLAG_e
  56. #undef FLAG_E
  57. #endif
  58. // fold bsw#<1=80 bsw#<1=80
  59. #undef OPTSTR_fold
  60. #define OPTSTR_fold "bsw#<1=80"
  61. #ifdef CLEANUP_fold
  62. #undef CLEANUP_fold
  63. #undef FOR_fold
  64. #undef FLAG_w
  65. #undef FLAG_s
  66. #undef FLAG_b
  67. #endif
  68. // grep (line-buffered)(color):;(exclude-dir)*S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rRsvwc(count)L(files-without-match)l(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EF] (line-buffered)(color):;(exclude-dir)*S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rRsvwc(count)L(files-without-match)l(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EF]
  69. #undef OPTSTR_grep
  70. #define OPTSTR_grep "(line-buffered)(color):;(exclude-dir)*S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rRsvwc(count)L(files-without-match)l(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EF]"
  71. #ifdef CLEANUP_grep
  72. #undef CLEANUP_grep
  73. #undef FOR_grep
  74. #undef FLAG_x
  75. #undef FLAG_m
  76. #undef FLAG_A
  77. #undef FLAG_B
  78. #undef FLAG_C
  79. #undef FLAG_f
  80. #undef FLAG_e
  81. #undef FLAG_q
  82. #undef FLAG_l
  83. #undef FLAG_L
  84. #undef FLAG_c
  85. #undef FLAG_w
  86. #undef FLAG_v
  87. #undef FLAG_s
  88. #undef FLAG_R
  89. #undef FLAG_r
  90. #undef FLAG_o
  91. #undef FLAG_n
  92. #undef FLAG_i
  93. #undef FLAG_h
  94. #undef FLAG_b
  95. #undef FLAG_a
  96. #undef FLAG_I
  97. #undef FLAG_H
  98. #undef FLAG_F
  99. #undef FLAG_E
  100. #undef FLAG_z
  101. #undef FLAG_Z
  102. #undef FLAG_M
  103. #undef FLAG_S
  104. #undef FLAG_exclude_dir
  105. #undef FLAG_color
  106. #undef FLAG_line_buffered
  107. #endif
  108. // gzip n(no-name)cdfkt123456789[-123456789] n(no-name)cdfkt123456789[-123456789]
  109. #undef OPTSTR_gzip
  110. #define OPTSTR_gzip "n(no-name)cdfkt123456789[-123456789]"
  111. #ifdef CLEANUP_gzip
  112. #undef CLEANUP_gzip
  113. #undef FOR_gzip
  114. #undef FLAG_9
  115. #undef FLAG_8
  116. #undef FLAG_7
  117. #undef FLAG_6
  118. #undef FLAG_5
  119. #undef FLAG_4
  120. #undef FLAG_3
  121. #undef FLAG_2
  122. #undef FLAG_1
  123. #undef FLAG_t
  124. #undef FLAG_k
  125. #undef FLAG_f
  126. #undef FLAG_d
  127. #undef FLAG_c
  128. #undef FLAG_n
  129. #endif
  130. // head ?n(lines)#<0=10c(bytes)#<0qv[-nc] ?n(lines)#<0=10c(bytes)#<0qv[-nc]
  131. #undef OPTSTR_head
  132. #define OPTSTR_head "?n(lines)#<0=10c(bytes)#<0qv[-nc]"
  133. #ifdef CLEANUP_head
  134. #undef CLEANUP_head
  135. #undef FOR_head
  136. #undef FLAG_v
  137. #undef FLAG_q
  138. #undef FLAG_c
  139. #undef FLAG_n
  140. #endif
  141. // ln <1rt:Tvnfs <1rt:Tvnfs
  142. #undef OPTSTR_ln
  143. #define OPTSTR_ln "<1rt:Tvnfs"
  144. #ifdef CLEANUP_ln
  145. #undef CLEANUP_ln
  146. #undef FOR_ln
  147. #undef FLAG_s
  148. #undef FLAG_f
  149. #undef FLAG_n
  150. #undef FLAG_v
  151. #undef FLAG_T
  152. #undef FLAG_t
  153. #undef FLAG_r
  154. #endif
  155. // ls (sort):(color):;(full-time)(show-control-chars)ÿ(block-size)#=1024<1¡(group-directories-first)þZgoACFHLNRSUXabcdfhikl@mnpqrstuw#=80<0x1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][-Nqb][-kÿ] (sort):(color):;(full-time)(show-control-chars)ÿ(block-size)#=1024<1¡(group-directories-first)þZgoACFHLNRSUXabcdfhikl@mnpqrstuw#=80<0x1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][-Nqb][-kÿ]
  156. #undef OPTSTR_ls
  157. #define OPTSTR_ls "(sort):(color):;(full-time)(show-control-chars)ÿ(block-size)#=1024<1¡(group-directories-first)þZgoACFHLNRSUXabcdfhikl@mnpqrstuw#=80<0x1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL][-Nqb][-kÿ]"
  158. #ifdef CLEANUP_ls
  159. #undef CLEANUP_ls
  160. #undef FOR_ls
  161. #undef FLAG_1
  162. #undef FLAG_x
  163. #undef FLAG_w
  164. #undef FLAG_u
  165. #undef FLAG_t
  166. #undef FLAG_s
  167. #undef FLAG_r
  168. #undef FLAG_q
  169. #undef FLAG_p
  170. #undef FLAG_n
  171. #undef FLAG_m
  172. #undef FLAG_l
  173. #undef FLAG_k
  174. #undef FLAG_i
  175. #undef FLAG_h
  176. #undef FLAG_f
  177. #undef FLAG_d
  178. #undef FLAG_c
  179. #undef FLAG_b
  180. #undef FLAG_a
  181. #undef FLAG_X
  182. #undef FLAG_U
  183. #undef FLAG_S
  184. #undef FLAG_R
  185. #undef FLAG_N
  186. #undef FLAG_L
  187. #undef FLAG_H
  188. #undef FLAG_F
  189. #undef FLAG_C
  190. #undef FLAG_A
  191. #undef FLAG_o
  192. #undef FLAG_g
  193. #undef FLAG_Z
  194. #undef FLAG_X7E
  195. #undef FLAG_X21
  196. #undef FLAG_X7F
  197. #undef FLAG_show_control_chars
  198. #undef FLAG_full_time
  199. #undef FLAG_color
  200. #undef FLAG_sort
  201. #endif
  202. // mkdir <1vp(parent)(parents)m: <1Z:vp(parent)(parents)m:
  203. #undef OPTSTR_mkdir
  204. #define OPTSTR_mkdir "<1vp(parent)(parents)m:"
  205. #ifdef CLEANUP_mkdir
  206. #undef CLEANUP_mkdir
  207. #undef FOR_mkdir
  208. #undef FLAG_m
  209. #undef FLAG_p
  210. #undef FLAG_v
  211. #undef FLAG_Z
  212. #endif
  213. // od j#vw#<1=16N#xsodcbA:t* j#vw#<1=16N#xsodcbA:t*
  214. #undef OPTSTR_od
  215. #define OPTSTR_od "j#vw#<1=16N#xsodcbA:t*"
  216. #ifdef CLEANUP_od
  217. #undef CLEANUP_od
  218. #undef FOR_od
  219. #undef FLAG_t
  220. #undef FLAG_A
  221. #undef FLAG_b
  222. #undef FLAG_c
  223. #undef FLAG_d
  224. #undef FLAG_o
  225. #undef FLAG_s
  226. #undef FLAG_x
  227. #undef FLAG_N
  228. #undef FLAG_w
  229. #undef FLAG_v
  230. #undef FLAG_j
  231. #endif
  232. // readlink <1vnf(canonicalize)emqz[-mef][-qv] <1vnf(canonicalize)emqz[-mef][-qv]
  233. #undef OPTSTR_readlink
  234. #define OPTSTR_readlink "<1vnf(canonicalize)emqz[-mef][-qv]"
  235. #ifdef CLEANUP_readlink
  236. #undef CLEANUP_readlink
  237. #undef FOR_readlink
  238. #undef FLAG_z
  239. #undef FLAG_q
  240. #undef FLAG_m
  241. #undef FLAG_e
  242. #undef FLAG_f
  243. #undef FLAG_n
  244. #undef FLAG_v
  245. #endif
  246. // realpath <1(relative-base):R(relative-to):s(no-symlinks)LPemqz[-Ps][-LP][-me]
  247. #undef OPTSTR_realpath
  248. #define OPTSTR_realpath "<1(relative-base):R(relative-to):s(no-symlinks)LPemqz[-Ps][-LP][-me]"
  249. #ifdef CLEANUP_realpath
  250. #undef CLEANUP_realpath
  251. #undef FOR_realpath
  252. #undef FLAG_z
  253. #undef FLAG_q
  254. #undef FLAG_m
  255. #undef FLAG_e
  256. #undef FLAG_P
  257. #undef FLAG_L
  258. #undef FLAG_s
  259. #undef FLAG_R
  260. #undef FLAG_relative_base
  261. #endif
  262. // rm f(force)iRrv[-fi] f(force)iRrv[-fi]
  263. #undef OPTSTR_rm
  264. #define OPTSTR_rm "f(force)iRrv[-fi]"
  265. #ifdef CLEANUP_rm
  266. #undef CLEANUP_rm
  267. #undef FOR_rm
  268. #undef FLAG_v
  269. #undef FLAG_r
  270. #undef FLAG_R
  271. #undef FLAG_i
  272. #undef FLAG_f
  273. #endif
  274. // sed (help)(version)(tarxform)e*f*i:;nErz(null-data)s[+Er] (help)(version)(tarxform)e*f*i:;nErz(null-data)s[+Er]
  275. #undef OPTSTR_sed
  276. #define OPTSTR_sed "(help)(version)(tarxform)e*f*i:;nErz(null-data)s[+Er]"
  277. #ifdef CLEANUP_sed
  278. #undef CLEANUP_sed
  279. #undef FOR_sed
  280. #undef FLAG_s
  281. #undef FLAG_z
  282. #undef FLAG_r
  283. #undef FLAG_E
  284. #undef FLAG_n
  285. #undef FLAG_i
  286. #undef FLAG_f
  287. #undef FLAG_e
  288. #undef FLAG_tarxform
  289. #undef FLAG_version
  290. #undef FLAG_help
  291. #endif
  292. // sort S:T:mo:k*t:xVbMCcszdfirun gS:T:mo:k*t:xVbMCcszdfirun
  293. #undef OPTSTR_sort
  294. #define OPTSTR_sort "S:T:mo:k*t:xVbMCcszdfirun"
  295. #ifdef CLEANUP_sort
  296. #undef CLEANUP_sort
  297. #undef FOR_sort
  298. #undef FLAG_n
  299. #undef FLAG_u
  300. #undef FLAG_r
  301. #undef FLAG_i
  302. #undef FLAG_f
  303. #undef FLAG_d
  304. #undef FLAG_z
  305. #undef FLAG_s
  306. #undef FLAG_c
  307. #undef FLAG_C
  308. #undef FLAG_M
  309. #undef FLAG_b
  310. #undef FLAG_V
  311. #undef FLAG_x
  312. #undef FLAG_t
  313. #undef FLAG_k
  314. #undef FLAG_o
  315. #undef FLAG_m
  316. #undef FLAG_T
  317. #undef FLAG_S
  318. #undef FLAG_g
  319. #endif
  320. // tail ?fFs:c(bytes)-n(lines)-[-cn][-fF] ?fFs:c(bytes)-n(lines)-[-cn][-fF]
  321. #undef OPTSTR_tail
  322. #define OPTSTR_tail "?fFs:c(bytes)-n(lines)-[-cn][-fF]"
  323. #ifdef CLEANUP_tail
  324. #undef CLEANUP_tail
  325. #undef FOR_tail
  326. #undef FLAG_n
  327. #undef FLAG_c
  328. #undef FLAG_s
  329. #undef FLAG_F
  330. #undef FLAG_f
  331. #endif
  332. // tee ia ia
  333. #undef OPTSTR_tee
  334. #define OPTSTR_tee "ia"
  335. #ifdef CLEANUP_tee
  336. #undef CLEANUP_tee
  337. #undef FOR_tee
  338. #undef FLAG_a
  339. #undef FLAG_i
  340. #endif
  341. // tr ^<1>2Ccstd[+cC] ^<1>2Ccstd[+cC]
  342. #undef OPTSTR_tr
  343. #define OPTSTR_tr "^<1>2Ccstd[+cC]"
  344. #ifdef CLEANUP_tr
  345. #undef CLEANUP_tr
  346. #undef FOR_tr
  347. #undef FLAG_d
  348. #undef FLAG_t
  349. #undef FLAG_s
  350. #undef FLAG_c
  351. #undef FLAG_C
  352. #endif
  353. // uname paomvrns paomvrns
  354. #undef OPTSTR_uname
  355. #define OPTSTR_uname "paomvrns"
  356. #ifdef CLEANUP_uname
  357. #undef CLEANUP_uname
  358. #undef FOR_uname
  359. #undef FLAG_s
  360. #undef FLAG_n
  361. #undef FLAG_r
  362. #undef FLAG_v
  363. #undef FLAG_m
  364. #undef FLAG_o
  365. #undef FLAG_a
  366. #undef FLAG_p
  367. #endif
  368. // wc Lcmwl Lcmwl
  369. #undef OPTSTR_wc
  370. #define OPTSTR_wc "Lcmwl"
  371. #ifdef CLEANUP_wc
  372. #undef CLEANUP_wc
  373. #undef FOR_wc
  374. #undef FLAG_l
  375. #undef FLAG_w
  376. #undef FLAG_m
  377. #undef FLAG_c
  378. #undef FLAG_L
  379. #endif
  380. // xargs ^E:P#<0(null)=1optr(no-run-if-empty)n#<1(max-args)s#0[!0E] ^E:P#<0(null)=1optr(no-run-if-empty)n#<1(max-args)s#0[!0E]
  381. #undef OPTSTR_xargs
  382. #define OPTSTR_xargs "^E:P#<0(null)=1optr(no-run-if-empty)n#<1(max-args)s#0[!0E]"
  383. #ifdef CLEANUP_xargs
  384. #undef CLEANUP_xargs
  385. #undef FOR_xargs
  386. #undef FLAG_0
  387. #undef FLAG_s
  388. #undef FLAG_n
  389. #undef FLAG_r
  390. #undef FLAG_t
  391. #undef FLAG_p
  392. #undef FLAG_o
  393. #undef FLAG_P
  394. #undef FLAG_E
  395. #endif
  396. #ifdef FOR_basename
  397. #define CLEANUP_basename
  398. #ifndef TT
  399. #define TT this.basename
  400. #endif
  401. #define FLAG_s (1LL<<0)
  402. #define FLAG_a (1LL<<1)
  403. #endif
  404. #ifdef FOR_cat
  405. #define CLEANUP_cat
  406. #ifndef TT
  407. #define TT this.cat
  408. #endif
  409. #define FLAG_e (1LL<<0)
  410. #define FLAG_t (1LL<<1)
  411. #define FLAG_v (1LL<<2)
  412. #define FLAG_u (1LL<<3)
  413. #endif
  414. #ifdef FOR_chmod
  415. #define CLEANUP_chmod
  416. #ifndef TT
  417. #define TT this.chmod
  418. #endif
  419. #define FLAG_R (1LL<<0)
  420. #define FLAG_f (1LL<<1)
  421. #define FLAG_v (1LL<<2)
  422. #define FLAG_c (1LL<<3)
  423. #endif
  424. #ifdef FOR_cmp
  425. #define CLEANUP_cmp
  426. #ifndef TT
  427. #define TT this.cmp
  428. #endif
  429. #define FLAG_n (1LL<<0)
  430. #define FLAG_s (1LL<<1)
  431. #define FLAG_l (1LL<<2)
  432. #endif
  433. #ifdef FOR_echo
  434. #define CLEANUP_echo
  435. #ifndef TT
  436. #define TT this.echo
  437. #endif
  438. #define FLAG_n (1LL<<0)
  439. #define FLAG_e (1LL<<1)
  440. #define FLAG_E (1LL<<2)
  441. #endif
  442. #ifdef FOR_fold
  443. #define CLEANUP_fold
  444. #ifndef TT
  445. #define TT this.fold
  446. #endif
  447. #define FLAG_w (1LL<<0)
  448. #define FLAG_s (1LL<<1)
  449. #define FLAG_b (1LL<<2)
  450. #endif
  451. #ifdef FOR_grep
  452. #define CLEANUP_grep
  453. #ifndef TT
  454. #define TT this.grep
  455. #endif
  456. #define FLAG_x (1LL<<0)
  457. #define FLAG_m (1LL<<1)
  458. #define FLAG_A (1LL<<2)
  459. #define FLAG_B (1LL<<3)
  460. #define FLAG_C (1LL<<4)
  461. #define FLAG_f (1LL<<5)
  462. #define FLAG_e (1LL<<6)
  463. #define FLAG_q (1LL<<7)
  464. #define FLAG_l (1LL<<8)
  465. #define FLAG_L (1LL<<9)
  466. #define FLAG_c (1LL<<10)
  467. #define FLAG_w (1LL<<11)
  468. #define FLAG_v (1LL<<12)
  469. #define FLAG_s (1LL<<13)
  470. #define FLAG_R (1LL<<14)
  471. #define FLAG_r (1LL<<15)
  472. #define FLAG_o (1LL<<16)
  473. #define FLAG_n (1LL<<17)
  474. #define FLAG_i (1LL<<18)
  475. #define FLAG_h (1LL<<19)
  476. #define FLAG_b (1LL<<20)
  477. #define FLAG_a (1LL<<21)
  478. #define FLAG_I (1LL<<22)
  479. #define FLAG_H (1LL<<23)
  480. #define FLAG_F (1LL<<24)
  481. #define FLAG_E (1LL<<25)
  482. #define FLAG_z (1LL<<26)
  483. #define FLAG_Z (1LL<<27)
  484. #define FLAG_M (1LL<<28)
  485. #define FLAG_S (1LL<<29)
  486. #define FLAG_exclude_dir (1LL<<30)
  487. #define FLAG_color (1LL<<31)
  488. #define FLAG_line_buffered (1LL<<32)
  489. #endif
  490. #ifdef FOR_gzip
  491. #define CLEANUP_gzip
  492. #ifndef TT
  493. #define TT this.gzip
  494. #endif
  495. #define FLAG_9 (1LL<<0)
  496. #define FLAG_8 (1LL<<1)
  497. #define FLAG_7 (1LL<<2)
  498. #define FLAG_6 (1LL<<3)
  499. #define FLAG_5 (1LL<<4)
  500. #define FLAG_4 (1LL<<5)
  501. #define FLAG_3 (1LL<<6)
  502. #define FLAG_2 (1LL<<7)
  503. #define FLAG_1 (1LL<<8)
  504. #define FLAG_t (1LL<<9)
  505. #define FLAG_k (1LL<<10)
  506. #define FLAG_f (1LL<<11)
  507. #define FLAG_d (1LL<<12)
  508. #define FLAG_c (1LL<<13)
  509. #define FLAG_n (1LL<<14)
  510. #endif
  511. #ifdef FOR_head
  512. #define CLEANUP_head
  513. #ifndef TT
  514. #define TT this.head
  515. #endif
  516. #define FLAG_v (1LL<<0)
  517. #define FLAG_q (1LL<<1)
  518. #define FLAG_c (1LL<<2)
  519. #define FLAG_n (1LL<<3)
  520. #endif
  521. #ifdef FOR_ln
  522. #define CLEANUP_ln
  523. #ifndef TT
  524. #define TT this.ln
  525. #endif
  526. #define FLAG_s (1LL<<0)
  527. #define FLAG_f (1LL<<1)
  528. #define FLAG_n (1LL<<2)
  529. #define FLAG_v (1LL<<3)
  530. #define FLAG_T (1LL<<4)
  531. #define FLAG_t (1LL<<5)
  532. #define FLAG_r (1LL<<6)
  533. #endif
  534. #ifdef FOR_ls
  535. #define CLEANUP_ls
  536. #ifndef TT
  537. #define TT this.ls
  538. #endif
  539. #define FLAG_1 (1LL<<0)
  540. #define FLAG_x (1LL<<1)
  541. #define FLAG_w (1LL<<2)
  542. #define FLAG_u (1LL<<3)
  543. #define FLAG_t (1LL<<4)
  544. #define FLAG_s (1LL<<5)
  545. #define FLAG_r (1LL<<6)
  546. #define FLAG_q (1LL<<7)
  547. #define FLAG_p (1LL<<8)
  548. #define FLAG_n (1LL<<9)
  549. #define FLAG_m (1LL<<10)
  550. #define FLAG_l (1LL<<11)
  551. #define FLAG_k (1LL<<12)
  552. #define FLAG_i (1LL<<13)
  553. #define FLAG_h (1LL<<14)
  554. #define FLAG_f (1LL<<15)
  555. #define FLAG_d (1LL<<16)
  556. #define FLAG_c (1LL<<17)
  557. #define FLAG_b (1LL<<18)
  558. #define FLAG_a (1LL<<19)
  559. #define FLAG_X (1LL<<20)
  560. #define FLAG_U (1LL<<21)
  561. #define FLAG_S (1LL<<22)
  562. #define FLAG_R (1LL<<23)
  563. #define FLAG_N (1LL<<24)
  564. #define FLAG_L (1LL<<25)
  565. #define FLAG_H (1LL<<26)
  566. #define FLAG_F (1LL<<27)
  567. #define FLAG_C (1LL<<28)
  568. #define FLAG_A (1LL<<29)
  569. #define FLAG_o (1LL<<30)
  570. #define FLAG_g (1LL<<31)
  571. #define FLAG_Z (1LL<<32)
  572. #define FLAG_X7E (1LL<<33)
  573. #define FLAG_X21 (1LL<<34)
  574. #define FLAG_X7F (1LL<<35)
  575. #define FLAG_show_control_chars (1LL<<36)
  576. #define FLAG_full_time (1LL<<37)
  577. #define FLAG_color (1LL<<38)
  578. #define FLAG_sort (1LL<<39)
  579. #endif
  580. #ifdef FOR_mkdir
  581. #define CLEANUP_mkdir
  582. #ifndef TT
  583. #define TT this.mkdir
  584. #endif
  585. #define FLAG_m (1LL<<0)
  586. #define FLAG_p (1LL<<1)
  587. #define FLAG_v (1LL<<2)
  588. #define FLAG_Z (FORCED_FLAG<<3)
  589. #endif
  590. #ifdef FOR_od
  591. #define CLEANUP_od
  592. #ifndef TT
  593. #define TT this.od
  594. #endif
  595. #define FLAG_t (1LL<<0)
  596. #define FLAG_A (1LL<<1)
  597. #define FLAG_b (1LL<<2)
  598. #define FLAG_c (1LL<<3)
  599. #define FLAG_d (1LL<<4)
  600. #define FLAG_o (1LL<<5)
  601. #define FLAG_s (1LL<<6)
  602. #define FLAG_x (1LL<<7)
  603. #define FLAG_N (1LL<<8)
  604. #define FLAG_w (1LL<<9)
  605. #define FLAG_v (1LL<<10)
  606. #define FLAG_j (1LL<<11)
  607. #endif
  608. #ifdef FOR_readlink
  609. #define CLEANUP_readlink
  610. #ifndef TT
  611. #define TT this.readlink
  612. #endif
  613. #define FLAG_z (1LL<<0)
  614. #define FLAG_q (1LL<<1)
  615. #define FLAG_m (1LL<<2)
  616. #define FLAG_e (1LL<<3)
  617. #define FLAG_f (1LL<<4)
  618. #define FLAG_n (1LL<<5)
  619. #define FLAG_v (1LL<<6)
  620. #endif
  621. #ifdef FOR_realpath
  622. #define CLEANUP_realpath
  623. #ifndef TT
  624. #define TT this.realpath
  625. #endif
  626. #define FLAG_z (FORCED_FLAG<<0)
  627. #define FLAG_q (FORCED_FLAG<<1)
  628. #define FLAG_m (FORCED_FLAG<<2)
  629. #define FLAG_e (FORCED_FLAG<<3)
  630. #define FLAG_P (FORCED_FLAG<<4)
  631. #define FLAG_L (FORCED_FLAG<<5)
  632. #define FLAG_s (FORCED_FLAG<<6)
  633. #define FLAG_R (FORCED_FLAG<<7)
  634. #define FLAG_relative_base (FORCED_FLAG<<8)
  635. #endif
  636. #ifdef FOR_rm
  637. #define CLEANUP_rm
  638. #ifndef TT
  639. #define TT this.rm
  640. #endif
  641. #define FLAG_v (1LL<<0)
  642. #define FLAG_r (1LL<<1)
  643. #define FLAG_R (1LL<<2)
  644. #define FLAG_i (1LL<<3)
  645. #define FLAG_f (1LL<<4)
  646. #endif
  647. #ifdef FOR_sed
  648. #define CLEANUP_sed
  649. #ifndef TT
  650. #define TT this.sed
  651. #endif
  652. #define FLAG_s (1LL<<0)
  653. #define FLAG_z (1LL<<1)
  654. #define FLAG_r (1LL<<2)
  655. #define FLAG_E (1LL<<3)
  656. #define FLAG_n (1LL<<4)
  657. #define FLAG_i (1LL<<5)
  658. #define FLAG_f (1LL<<6)
  659. #define FLAG_e (1LL<<7)
  660. #define FLAG_tarxform (1LL<<8)
  661. #define FLAG_version (1LL<<9)
  662. #define FLAG_help (1LL<<10)
  663. #endif
  664. #ifdef FOR_sort
  665. #define CLEANUP_sort
  666. #ifndef TT
  667. #define TT this.sort
  668. #endif
  669. #define FLAG_n (1LL<<0)
  670. #define FLAG_u (1LL<<1)
  671. #define FLAG_r (1LL<<2)
  672. #define FLAG_i (1LL<<3)
  673. #define FLAG_f (1LL<<4)
  674. #define FLAG_d (1LL<<5)
  675. #define FLAG_z (1LL<<6)
  676. #define FLAG_s (1LL<<7)
  677. #define FLAG_c (1LL<<8)
  678. #define FLAG_C (1LL<<9)
  679. #define FLAG_M (1LL<<10)
  680. #define FLAG_b (1LL<<11)
  681. #define FLAG_V (1LL<<12)
  682. #define FLAG_x (1LL<<13)
  683. #define FLAG_t (1LL<<14)
  684. #define FLAG_k (1LL<<15)
  685. #define FLAG_o (1LL<<16)
  686. #define FLAG_m (1LL<<17)
  687. #define FLAG_T (1LL<<18)
  688. #define FLAG_S (1LL<<19)
  689. #define FLAG_g (FORCED_FLAG<<20)
  690. #endif
  691. #ifdef FOR_tail
  692. #define CLEANUP_tail
  693. #ifndef TT
  694. #define TT this.tail
  695. #endif
  696. #define FLAG_n (1LL<<0)
  697. #define FLAG_c (1LL<<1)
  698. #define FLAG_s (1LL<<2)
  699. #define FLAG_F (1LL<<3)
  700. #define FLAG_f (1LL<<4)
  701. #endif
  702. #ifdef FOR_tee
  703. #define CLEANUP_tee
  704. #ifndef TT
  705. #define TT this.tee
  706. #endif
  707. #define FLAG_a (1LL<<0)
  708. #define FLAG_i (1LL<<1)
  709. #endif
  710. #ifdef FOR_tr
  711. #define CLEANUP_tr
  712. #ifndef TT
  713. #define TT this.tr
  714. #endif
  715. #define FLAG_d (1LL<<0)
  716. #define FLAG_t (1LL<<1)
  717. #define FLAG_s (1LL<<2)
  718. #define FLAG_c (1LL<<3)
  719. #define FLAG_C (1LL<<4)
  720. #endif
  721. #ifdef FOR_uname
  722. #define CLEANUP_uname
  723. #ifndef TT
  724. #define TT this.uname
  725. #endif
  726. #define FLAG_s (1LL<<0)
  727. #define FLAG_n (1LL<<1)
  728. #define FLAG_r (1LL<<2)
  729. #define FLAG_v (1LL<<3)
  730. #define FLAG_m (1LL<<4)
  731. #define FLAG_o (1LL<<5)
  732. #define FLAG_a (1LL<<6)
  733. #define FLAG_p (1LL<<7)
  734. #endif
  735. #ifdef FOR_wc
  736. #define CLEANUP_wc
  737. #ifndef TT
  738. #define TT this.wc
  739. #endif
  740. #define FLAG_l (1LL<<0)
  741. #define FLAG_w (1LL<<1)
  742. #define FLAG_m (1LL<<2)
  743. #define FLAG_c (1LL<<3)
  744. #define FLAG_L (1LL<<4)
  745. #endif
  746. #ifdef FOR_xargs
  747. #define CLEANUP_xargs
  748. #ifndef TT
  749. #define TT this.xargs
  750. #endif
  751. #define FLAG_0 (1LL<<0)
  752. #define FLAG_s (1LL<<1)
  753. #define FLAG_n (1LL<<2)
  754. #define FLAG_r (1LL<<3)
  755. #define FLAG_t (1LL<<4)
  756. #define FLAG_p (1LL<<5)
  757. #define FLAG_o (1LL<<6)
  758. #define FLAG_P (1LL<<7)
  759. #define FLAG_E (1LL<<8)
  760. #endif
  761. #undef OPTSTR_ascii
  762. #define OPTSTR_ascii 0
  763. #undef OPTSTR_dirname
  764. #define OPTSTR_dirname "<1"
  765. #undef OPTSTR_gitcheckout
  766. #define OPTSTR_gitcheckout "<1"
  767. #undef OPTSTR_gitclone
  768. #define OPTSTR_gitclone "<1"
  769. #undef OPTSTR_gitfetch
  770. #define OPTSTR_gitfetch 0
  771. #undef OPTSTR_gitinit
  772. #define OPTSTR_gitinit "<1"
  773. #undef OPTSTR_gitremote
  774. #define OPTSTR_gitremote "<1"
  775. #undef OPTSTR_makedevs
  776. #define OPTSTR_makedevs "<1>1d:"
  777. #undef OPTSTR_toybox
  778. #define OPTSTR_toybox 0
  779. #undef OPTSTR_which
  780. #define OPTSTR_which "<1a"