posix_conformance.txt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. Busybox POSIX conformance table
  2. See POSIX documentation (1003.1-2008) here:
  3. http://www.opengroup.org/onlinepubs/9699919799/
  4. And the complete list of all utilities that POSIX covers:
  5. http://www.opengroup.org/onlinepubs/9699919799/idx/utilities.html
  6. This listing is a work in progress, and currently only covers
  7. tool options (not operands, environment variables, return codes, etc..).
  8. For each option it is set if it (a) exists and (b) compliant to POSIX 2008.
  9. Some options exist but there is no value in the 'compliant' column: that
  10. means no one has yet bothered to make sure that the option does what it is
  11. required to do.
  12. -----------------------------------------------
  13. POSIX Tools supported only as shell built-ins (ash shell):
  14. alias, bg, cd, fg, getopts, hash, jobs, read, type, umask, ulimit,
  15. unalias, wait, write
  16. POSIX Tools not supported:
  17. asa, at, batch, bc, c99, command, compress, csplit, ex, fc, file,
  18. gencat, getconf, iconv, join, link, locale, localedef, lp, m4,
  19. mailx, newgrp, nl, paste, pathchk, pax, pr, qalter, qdel, qhold, qmove,
  20. qmsg, qrerun, qrls, qselect, qsig, qstat, qsub, tabs, talk, tput,
  21. tsort, unlink, uucp, uustat, uux
  22. POSIX Tools not supported (DEVELOPMENT):
  23. admin, cflow, ctags, cxref, delta, fort77, get, lex, make, nm, prs, rmdel,
  24. sact, sccs, strip, unget, val, what, yacc
  25. POSIX Tools supported:
  26. Note: echo, printf, kill, pwd documented here as stand-alone applets,
  27. not as ash built-ins.
  28. ar POSIX options ********************* Failed to recognize zip & tar (did not compare to regular ar)
  29. option | exists | compliant | remarks
  30. -C | no | no |
  31. -T | no | no |
  32. -a | no | no |
  33. -b | no | no |
  34. -c | no | no |
  35. -d | no | no |
  36. -i | no | no |
  37. -m | no | no |
  38. -p | yes | |
  39. -q | no | no |
  40. -r | no | no |
  41. -s | no | no |
  42. -t | yes | |
  43. -u | no | no |
  44. -v | yes | |
  45. -x | yes | |
  46. ar Busybox specific options:
  47. -o
  48. awk POSIX options
  49. option | exists | compliant | remarks
  50. -F ERE | yes | |
  51. -f progfile | yes | |
  52. -v assignment | yes | |
  53. awk Busybox specific options: None
  54. basename POSIX options: None
  55. basename Busybox specific options: None
  56. cal POSIX options: None
  57. cal Busybox specific options:
  58. -y, -j
  59. cat POSIX options
  60. option | exists | compliant | remarks
  61. -u | yes | no | option is ignored
  62. cat Busybox specific options: None
  63. chgrp POSIX options
  64. option | exists | compliant | remarks
  65. -H | yes | |
  66. -L | yes | |
  67. -P | yes | |
  68. -R | yes | |
  69. -h | yes | |
  70. chgrp Busybox specific options:
  71. -f, -c, -v
  72. chmod POSIX options
  73. option | exists | compliant | remarks
  74. -R | yes | yes |
  75. chmod Busybox specific options:
  76. -f, -v, -c
  77. chown POSIX options *********************************************
  78. option | exists | compliant | remarks
  79. -H | yes | | It seems like all flags are supported (according to printout), but
  80. -L | yes | | it fails to work on my machine
  81. -P | yes | |
  82. -R | yes | |
  83. -h | yes | |
  84. chown Busybox specific options:
  85. -f, -c, -v
  86. cksum POSIX options: None
  87. cksum Busybox specific options: None
  88. cmp POSIX options
  89. option | exists | compliant | remarks
  90. -l | yes | yes |
  91. -s | yes | yes |
  92. cmp Busybox specific options:
  93. comm POSIX options
  94. option | exists | compliant | remarks
  95. -1 | yes | yes |
  96. -2 | yes | yes |
  97. -3 | yes | yes |
  98. comm Busybox specific options: None
  99. cp POSIX options
  100. option | exists | compliant | remarks
  101. -H | yes | yes |
  102. -L | yes | yes |
  103. -P | yes | yes |
  104. -R | yes | yes |
  105. -f | yes | yes |
  106. -i | yes | yes |
  107. -p | yes | yes |
  108. cp Busybox specific options:
  109. -d, -a, -s, -c, -r, -l
  110. crontab POSIX options
  111. option | exists | compliant | remarks
  112. -e | yes | |
  113. -l | yes | |
  114. -r | yes | |
  115. crontab Busybox specific options:
  116. -u, -c
  117. cut POSIX options
  118. option | exists | compliant | remarks
  119. -b list | yes | yes |
  120. -c list | yes | yes |
  121. -d delim | yes | yes |
  122. -f list | yes | yes |
  123. -n | yes | yes |
  124. -s | yes | yes |
  125. cut Busybox specific options: None
  126. date POSIX options
  127. option | exists | compliant | remarks
  128. -u | yes | yes |
  129. date Busybox specific options:
  130. -I[SPEC], -d TIME, -r FILE, -R, -D FMT
  131. dd POSIX options:
  132. option | exists | compliant | remarks
  133. if | yes | |
  134. of | yes | |
  135. ibs | yes | |
  136. obs | yes | |
  137. bs | yes | |
  138. cbs | no | no |
  139. skip | yes | |
  140. seek | yes | |
  141. count | yes | |
  142. conv=ascii | no | no |
  143. conv=ebcdic | no | no |
  144. conv=ibm | no | no |
  145. conv=block | no | no |
  146. conv=unblock | no | no |
  147. conv=lcase | no | no |
  148. conv=ucase | no | no |
  149. conv=swap | no | no |
  150. conv=noerror | yes | |
  151. conv=notrunc | yes | |
  152. conv=sync | yes | |
  153. iflag=skip_bytes| yes | |
  154. dd Busybox specific options:
  155. conv=fsync
  156. df POSIX options
  157. option | exists | compliant | remarks
  158. -P | yes | yes |
  159. -k | yes | yes |
  160. -t | no | no |
  161. df Busybox specific options:
  162. -a, -m, -B SIZE, -i, -h
  163. Remark:
  164. - It seems that GNU df does not round percents up in its output (thus its results are a bit different)
  165. diff POSIX options
  166. option | exists | compliant | remarks
  167. -C n | no | no |
  168. -U n | yes | |
  169. -b | yes | |
  170. -c | no | no |
  171. -e | no | no |
  172. -f | no | no |
  173. -r | yes | |
  174. -u | no | no |
  175. diff Busybox specific options:
  176. -d, -a, -s, -t, -L, -N, -i, -T, -w, -q, -S
  177. dirname POSIX options: None
  178. dirname Busybox specific options: None
  179. du POSIX options
  180. option | exists | compliant | remarks
  181. -H | yes | |
  182. -L | yes | |
  183. -a | yes | |
  184. -k | yes | |
  185. -s | yes | |
  186. -x | yes | |
  187. du Busybox specific options:
  188. -c, -m, -h, -d N, -l
  189. echo POSIX options: None
  190. option | exists | compliant | remarks
  191. -n | yes | yes | The result of -n is "implementation-defined"
  192. echo Busybox specific options:
  193. -e, -E
  194. ed POSIX options
  195. option | exists | compliant | remarks
  196. -p string | no | no |
  197. -s | no | no |
  198. ed Busybox specific options: None
  199. env POSIX options
  200. option | exists | compliant | remarks
  201. -i | no | no |
  202. env Busybox specific options:
  203. -u, -, -i
  204. expand POSIX options
  205. option | exists | compliant | remarks
  206. -t tablist | yes | yes |
  207. expand Busybox specific options:
  208. --tabs=N, -i, --initial
  209. expr POSIX operations:
  210. option | exists | compliant | remarks
  211. | | yes | yes |
  212. & | yes | yes |
  213. = | yes | yes |
  214. > | yes | yes |
  215. >= | yes | yes |
  216. <= | yes | yes |
  217. < | yes | yes |
  218. != | yes | yes |
  219. + | yes | yes |
  220. - | yes | yes |
  221. * | yes | yes |
  222. / | yes | yes |
  223. % | yes | yes |
  224. : | yes | yes |
  225. (expr) | yes | yes |
  226. integer | yes | yes |
  227. string | yes | yes |
  228. expr Busybox specific operations:
  229. match, substr, index, length, quote
  230. false POSIX options: None
  231. false Busybox specific options: None
  232. find POSIX options
  233. option | exists | compliant | remarks
  234. -H | no | no |
  235. -L | no | no |
  236. find Busybox specific options:
  237. -group NAME, -mtime DAYS, -print, -maxdepth N, -exec CMD ARG ;, -newer FILE, -context, -iname PATTERN, -follow, -depth, -xdev, -inum N, -type X, -print0, -mindepth N, -mmin MINS, -regex PATTERN, -prune, -path PATTERN, -user NAME, -delete, -perm NNN, -name PATTERN, -size N[bck]
  238. fold POSIX options
  239. option | exists | compliant | remarks
  240. -b | yes | yes |
  241. -s | yes | yes |
  242. -w width | yes | yes |
  243. fold Busybox specific options: None
  244. fuser POSIX options
  245. option | exists | compliant | remarks
  246. -c | no | no |
  247. -f | no | no |
  248. -u | no | no |
  249. fuser Busybox specific options:
  250. -m, -k, -4, -SIGNAL, -6, -s
  251. grep POSIX options
  252. option | exists | compliant | remarks
  253. -E | yes | |
  254. -F | yes | |
  255. -c | yes | |
  256. -e pattern_list | yes | |
  257. -f pattern_file | yes | |
  258. -i | yes | |
  259. -l | yes | |
  260. -n | yes | |
  261. -q | yes | |
  262. -s | yes | |
  263. -v | yes | |
  264. -x | no | no |
  265. grep Busybox specific options:
  266. -A, -C, -B, -L, -H, -o, -h, -w, -r, -z, -m MAX
  267. head POSIX options
  268. option | exists | compliant | remarks
  269. -n number | yes | yes |
  270. head Busybox specific options:
  271. -v, -c NUM, -q
  272. id POSIX options
  273. option | exists | compliant | remarks
  274. -G | yes | yes |
  275. -g | yes | yes |
  276. -n | yes | yes |
  277. -r | yes | yes |
  278. -u | yes | yes |
  279. id Busybox specific options:
  280. -Z
  281. ipcrm POSIX options
  282. option | exists | compliant | remarks
  283. -M shmkey | no | no |
  284. -Q msgkey | no | no |
  285. -S semkey | no | no |
  286. -m shmid | no | no |
  287. -q msgid | no | no |
  288. -s semid | no | no |
  289. ipcrm Busybox specific options:
  290. -mM, -qQ, -sS
  291. ipcs POSIX options
  292. option | exists | compliant | remarks
  293. -a | yes | |
  294. -b | no | no |
  295. -c | yes | |
  296. -m | yes | |
  297. -o | no | no |
  298. -p | yes | |
  299. -q | yes | |
  300. -s | yes | |
  301. -t | yes | |
  302. ipcs Busybox specific options:
  303. -l, -i, -u
  304. kill POSIX options
  305. option | exists | compliant | remarks
  306. -l | yes | yes |
  307. -s signal_name | yes | yes |
  308. -signal_name | yes | yes |
  309. -signal_number | yes | yes |
  310. kill Busybox specific options:
  311. -q, -o
  312. ln POSIX options
  313. option | exists | compliant | remarks
  314. -L | no | no |
  315. -P | no | no |
  316. -f | yes | yes |
  317. -s | yes | yes |
  318. ln Busybox specific options:
  319. -S suf, -n, -b
  320. logger POSIX options: None
  321. logger Busybox specific options:
  322. -p PRIO, -t TAG, -s
  323. logname POSIX options: None
  324. logname Busybox specific options: None
  325. ls POSIX options
  326. option | exists | compliant | remarks
  327. -1 | yes | yes |
  328. -A | yes | yes |
  329. -C | yes | yes |
  330. -F | yes | yes | And more: '=' for sockets (not defined by POSIX)
  331. -H | no | no |
  332. -L | yes | yes | But coloring may be wrong (at least POSIX does not require correct colors :) )
  333. -R | yes | yes |
  334. -S | yes | yes |
  335. -a | yes | yes |
  336. -c | yes | no | Sorts output with '-l' (should only show ctime with '-l', and sort only with '-t')
  337. -d | yes | no | When invoked together with '-L' should read symbolic links, and doesn't
  338. -f | no | no |
  339. -g | no | no |
  340. -i | yes | yes |
  341. -k | yes | no | Does something completely unrelated! (Lists security context instead of specifying block size)
  342. -l | yes | yes |
  343. -m | no | no |
  344. -n | yes | no | Works correctly only together with '-l' (but POSIX requires '-l' to be implicitly assumed)
  345. -o | no | no |
  346. -p | yes | yes |
  347. -q | no | no |
  348. -r | yes | yes |
  349. -s | yes | yes |
  350. -t | yes | yes |
  351. -u | yes | yes |
  352. -x | yes | yes |
  353. ls Busybox specific options:
  354. --color, -T NUM, -K, -X, -Z, -e, -h, -v, -w NUM
  355. man POSIX options
  356. option | exists | compliant | remarks
  357. -k | no | no |
  358. man Busybox specific options:
  359. -a Display all pages
  360. mesg POSIX options: None
  361. mesg Busybox specific options: None
  362. mkdir POSIX options
  363. option | exists | compliant | remarks
  364. -m mode | yes | yes |
  365. -p | yes | yes |
  366. mkdir Busybox specific options:
  367. -Z
  368. mkfifo POSIX options
  369. option | exists | compliant | remarks
  370. -m mode | yes | yes |
  371. mkfifo Busybox specific options:
  372. -Z
  373. more POSIX options
  374. option | exists | compliant | remarks
  375. -c | no | no |
  376. -e | no | no |
  377. -i | no | no |
  378. -n number | no | no |
  379. -p command | no | no |
  380. -s | no | no |
  381. -t tagstring | no | no |
  382. -u | no | no |
  383. more Busybox specific options: None
  384. mv POSIX options
  385. option | exists | compliant | remarks
  386. -f | yes | yes |
  387. -i | yes | yes |
  388. mv Busybox specific options: None
  389. nice POSIX options
  390. option | exists | compliant | remarks
  391. -n increment | yes | yes |
  392. nice Busybox specific options: None
  393. nohup POSIX options: None
  394. nohup Busybox specific options: None
  395. od POSIX options
  396. option | exists | compliant | remarks
  397. -A address_base | no | no |
  398. -N count | no | no |
  399. -b | no | no |
  400. -c | no | no |
  401. -d | no | no |
  402. -j skip | no | no |
  403. -o | no | no |
  404. -s | no | no |
  405. -t type_string | no | no |
  406. -v | no | no |
  407. -x | no | no |
  408. od Busybox specific options: None
  409. patch POSIX options
  410. option | exists | compliant | remarks
  411. -D define | no | no |
  412. -N | no | no |
  413. -R | yes | yes |
  414. -b | no | no |
  415. -c | no | no |
  416. -d dir | no | no |
  417. -e | no | no |
  418. -i patchfile | yes | yes |
  419. -l | no | no |
  420. -n | no | no |
  421. -o outfile | no | no |
  422. -p num | yes | yes |
  423. -r rejectfile | no | no |
  424. -u | no | no |
  425. patch Busybox specific options: None
  426. printf POSIX options: None
  427. printf Busybox specific options: None
  428. ps POSIX options
  429. option | exists | compliant | remarks
  430. -A | no | no |
  431. -G grouplist | no | no |
  432. -U userlist | no | no |
  433. -a | no | no |
  434. -d | no | no |
  435. -e | no | no |
  436. -f | no | no |
  437. -g grouplist | no | no |
  438. -l | no | no |
  439. -n namelist | no | no |
  440. -o format | yes | no | not supported: ruser, group, rgroup, pcpu
  441. -p proclist | no | no |
  442. -t termlist | no | no |
  443. -u userlist | no | no |
  444. ps Busybox specific options: None
  445. pwd POSIX options
  446. option | exists | compliant | remarks
  447. -L | no | no |
  448. -P | no | no |
  449. pwd Busybox specific options: None
  450. renice POSIX options
  451. option | exists | compliant | remarks
  452. -g | yes | yes |
  453. -n increment | yes | yes | Note POSIX allows only to run with this option (busybox also allows to run without '-n' and set niceness directly)
  454. -p | yes | yes |
  455. -u | yes | yes |
  456. renice Busybox specific options: None
  457. rm POSIX options
  458. option | exists | compliant | remarks
  459. -R | yes | yes |
  460. -f | yes | yes |
  461. -i | yes | yes |
  462. -r | yes | yes |
  463. rm Busybox specific options: None
  464. rmdir POSIX options
  465. option | exists | compliant | remarks
  466. -p | yes | yes |
  467. rmdir Busybox specific options:
  468. --parents
  469. sed POSIX options
  470. option | exists | compliant | remarks
  471. -e script | yes | |
  472. -f script_file | yes | |
  473. -n | yes | |
  474. sed Busybox specific options:
  475. -i, -r
  476. sh POSIX options
  477. option | exists | compliant | remarks
  478. -c | no | no |
  479. -i | no | no |
  480. -s | no | no |
  481. sh Busybox specific options: None
  482. sleep POSIX options: None
  483. sleep Busybox specific options: None
  484. sort POSIX options
  485. option | exists | compliant | remarks
  486. -C | no | no |
  487. -b | yes | yes |
  488. -c | yes | yes |
  489. -d | yes | yes |
  490. -f | yes | yes |
  491. -i | yes | yes | But is not like GNU sort, which isn't! (try to sort 'a\nA\nB\nb' with and without -f)
  492. -k keydef | yes | |
  493. -m | no | no |
  494. -n | yes | yes |
  495. -o output | yes | yes |
  496. -r | yes | yes |
  497. -t char | yes | |
  498. -u | yes | yes |
  499. sort Busybox specific options:
  500. -mST, -g, -M, -s, -z
  501. split POSIX options
  502. option | exists | compliant | remarks
  503. -a suffix_length | yes | yes |
  504. -b n | yes | yes |
  505. -b nk | yes | yes |
  506. -b nm | yes | yes |
  507. -l line_count | yes | yes |
  508. split Busybox specific options: None
  509. strings POSIX options
  510. option | exists | compliant | remarks
  511. -a | yes | yes |
  512. -n number | yes | yes |
  513. -t format | no | no |
  514. strings Busybox specific options:
  515. -o, -f
  516. stty POSIX options
  517. option | exists | compliant | remarks
  518. -a | yes | yes |
  519. -g | yes | yes |
  520. stty Busybox specific options:
  521. -F DEVICE
  522. tail POSIX options
  523. option | exists | compliant | remarks
  524. -c number | yes | yes |
  525. -f | yes | yes |
  526. -n number | yes | yes |
  527. tail Busybox specific options:
  528. -v, -q, -s SEC
  529. tee POSIX options
  530. option | exists | compliant | remarks
  531. -a | yes | yes |
  532. -i | yes | yes |
  533. tee Busybox specific options: None
  534. test POSIX options: None
  535. test Busybox specific options: None
  536. time POSIX options
  537. option | exists | compliant | remarks
  538. -p | no | no |
  539. time Busybox specific options:
  540. -v
  541. touch POSIX options
  542. option | exists | compliant | remarks
  543. -a | no | no |
  544. -c | yes | yes |
  545. -d date_time | no | no |
  546. -m | no | no |
  547. -r ref_file | no | no |
  548. -t time | no | no |
  549. touch Busybox specific options: None
  550. tr POSIX options
  551. option | exists | compliant | remarks
  552. -C | no | no |
  553. -c | yes | yes |
  554. -d | yes | yes |
  555. -s | yes | yes |
  556. tr Busybox specific options: None
  557. true POSIX options: None
  558. true Busybox specific options: None
  559. tty POSIX options: None
  560. tty Busybox specific options:
  561. -s
  562. uname POSIX options
  563. option | exists | compliant | remarks
  564. -a | yes | yes |
  565. -m | yes | yes |
  566. -n | yes | yes |
  567. -r | yes | yes |
  568. -s | yes | yes |
  569. -v | yes | yes |
  570. uname Busybox specific options:
  571. -p
  572. uncompress POSIX options
  573. option | exists | compliant | remarks
  574. -c | yes | yes |
  575. -f | yes | yes |
  576. -v | no | no |
  577. uncompress Busybox specific options: None
  578. unexpand POSIX options
  579. option | exists | compliant | remarks
  580. -a | yes | no | POSIX requires converting two or more spaces to tabs, busybox converts one or more spaces
  581. -t tablist | yes | yes |
  582. unexpand Busybox specific options:
  583. --tabs=N, -f, --first-only, --all
  584. uniq POSIX options
  585. option | exists | compliant | remarks
  586. -c | yes | yes |
  587. -d | yes | yes |
  588. -f fields | yes | yes |
  589. -s chars | yes | yes |
  590. -u | yes | yes |
  591. uniq Busybox specific options:
  592. -w N
  593. uudecode POSIX options
  594. option | exists | compliant | remarks
  595. -o outfile | no | no |
  596. uudecode Busybox specific options: None
  597. uuencode POSIX options
  598. option | exists | compliant | remarks
  599. -m | yes | yes |
  600. uuencode Busybox specific options: None
  601. vi POSIX options
  602. option | exists | compliant | remarks
  603. -R | yes | |
  604. -c command | yes | |
  605. -r | no | no |
  606. -t tagstring | no | no |
  607. -w size | no | no |
  608. vi Busybox specific options:
  609. -H
  610. wc POSIX options
  611. option | exists | compliant | remarks
  612. -c | yes | yes |
  613. -l | yes | yes |
  614. -m | no | no |
  615. -w | yes | yes |
  616. wc Busybox specific options:
  617. -L
  618. who POSIX options
  619. option | exists | compliant | remarks
  620. -H | no | no |
  621. -T | no | no |
  622. -a | yes | no | just shows all
  623. -b | no | no |
  624. -d | no | no |
  625. -l | no | no |
  626. -m | no | no |
  627. -p | no | no |
  628. -q | no | no |
  629. -r | no | no |
  630. -s | no | no |
  631. -t | no | no |
  632. -u | no | no |
  633. who Busybox specific options: None
  634. xargs POSIX options
  635. option | exists | compliant | remarks
  636. -E eofstr | no | no |
  637. -I replstr | no | no |
  638. -L number | no | no |
  639. -n number | yes | yes |
  640. -p | yes | yes |
  641. -s size | yes | yes |
  642. -t | yes | yes |
  643. -x | yes | yes |
  644. xargs Busybox specific options:
  645. -e[STR], -0, -r
  646. zcat POSIX options: None
  647. zcat Busybox specific options: None