Commit graph

5596 commits

Author SHA1 Message Date
Piotr Kwiecinski
0ca5020b08 who: move help strings to markdown file 2023-03-19 11:59:14 +01:00
Sylvestre Ledru
7053543830
Merge pull request #4529 from papparapa/mknod-move-help-strings-to-md-file
mknod: move help strings to markdown file
2023-03-19 09:04:15 +01:00
Sylvestre Ledru
257587accf
Merge pull request #4547 from papparapa/mktemp-move-help-strings-to-md-file
mktemp: move help strings to markdown file
2023-03-19 09:01:35 +01:00
Surya Teja K
b39c4d2756
date: fix invalid argument error for RFC 3339 (#4535) 2023-03-19 08:54:45 +01:00
Koki Ueha
7376f3ad02 mktemp: move help strings to markdown file 2023-03-19 03:58:56 +00:00
papparapa
3b78b2e92f
Update src/uu/mknod/mknod.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-03-19 00:42:27 +09:00
papparapa
8393118aee
Update src/uu/mknod/mknod.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-03-19 00:42:16 +09:00
august radjoe
89b83c2f6a
A better handler for ./coreutils date -f aze (#4482) 2023-03-18 14:19:57 +01:00
Koki Ueha
7f00dfda76 mknod: move help strings to markdown file 2023-03-18 12:43:00 +00:00
Daniel Hofstetter
882a35c3b6
Merge pull request #4526 from tertsdiepraam/date-d-should-return-1
`date`: make sure 'invalid date' message also returns exit code 1
2023-03-18 07:08:04 +01:00
Terts Diepraam
e3aab307fe
Merge pull request #4189 from jfinkels/dd-stdin-from-file-descriptor
dd: open stdin from file descriptor when possible
2023-03-18 01:30:31 +01:00
Terts Diepraam
1b1446ce0c date: make sure 'invalid date' message also returns exit code 1 2023-03-17 21:49:26 +01:00
Terts Diepraam
2a4b48f253
Merge pull request #4442 from bbara/chmod-usage
chmod: fix GNU test 'chmod/usage'
2023-03-17 15:18:39 +01:00
Anish Bhobe
624588d37f date: Added default value for date --i.
`default_missing_value` set to `OPT_DATE` (`"date"`)
`num_args(0..=1)` required for `default_missing_value`.

Using function name `test_date_rfc_8601_default`.
The function name `test_date_rfc_8601` is left intact for
compatibility.
 
Fixes: #4521
2023-03-17 03:06:31 +01:00
Benjamin Bara
e982d57819 chmod: fix GNU test 'chmod/usage' 2023-03-16 21:25:26 +01:00
Surya Teja K
bd6905cf59
fix: match date -I error messages with GNU date (#4499)
* date: use value_parser to improve errors

* date: update panic! to unreachable inside impl From for Iso8601Format
2023-03-16 20:50:37 +01:00
Daniel Hofstetter
4e03e6254f
Merge pull request #4518 from miles170/uptime-move-help-strings-to-md-file
uptime: move help strings to markdown file
2023-03-16 16:09:57 +01:00
Miles Liu
6956377405
uptime: remove unused import 2023-03-16 19:44:27 +08:00
Miles Liu
66fef28ec6
uptime: move help strings to markdown file 2023-03-16 19:42:44 +08:00
Miles Liu
f623a7e13a
whoami: move help strings to markdown file 2023-03-16 19:39:36 +08:00
ValentinyFilip
2e36fa4f16 cksum: fix markdown format 2023-03-16 09:49:48 +01:00
ValentinyFilip
7c6a948526 cksum: fix format error 2023-03-15 21:05:55 +01:00
ValentinyFilip
61ad84f447 cksum: move help strings to markdown file 2023-03-15 19:09:38 +01:00
Terts Diepraam
dad474bfa0
Merge pull request #4315 from miles170/issue-4176-fix-timeout
timeout: fix subprocess is never terminated
2023-03-15 14:10:58 +01:00
Daniel Hofstetter
5967d66a20
Merge pull request #4508 from tertsdiepraam/pwd-minirefactor
`pwd`: small refactor of some match expressions
2023-03-14 07:09:36 +01:00
Terts Diepraam
d241ec7e08 pwd: small refactor of some match expressions 2023-03-13 22:19:29 +01:00
Koki Ueha
a480ab0694 mkfifo: move help strings to markdown file 2023-03-13 15:04:46 +00:00
Joining7943
5fb091a4fb sleep: Use fundu error types to improve error messages 2023-03-12 15:37:44 +01:00
Joining7943
3a28b616d9 sleep: Use fundu instead of uucore::parse_time::from_str 2023-03-12 15:37:44 +01:00
Terts Diepraam
7a6092b333
Merge branch 'main' into dd-stdin-from-file-descriptor 2023-03-12 13:56:28 +01:00
Terts Diepraam
320929d83d
Merge branch 'main' into issue-4176-fix-timeout 2023-03-12 13:35:27 +01:00
Sylvestre Ledru
0d03c48f6b Move the declaration at the right place 2023-03-12 11:12:09 +01:00
Sylvestre Ledru
27150a970b Merge the use declarations 2023-03-12 11:12:09 +01:00
shaoyuteng
fcdb7e48ed relpath: move help strings to markdown file 2023-03-12 11:12:09 +01:00
papparapa
e5b6f63305
parser: fix index out of bounds error (#4484)
+ revert 1bc9980 to use files in workspace
2023-03-12 11:07:59 +01:00
Jeffrey Finkelstein
9cb6b4a3c0 dd: open stdin from file descriptor when possible
Open stdin using its file descriptor so that a `dd skip=N` command in
a subshell does not consume all bytes from stdin.

For example, before this commit, multiple instances of `dd` reading
from stdin and appearing in a single command line would incorrectly
result in an empty stdin for each instance of `dd` after the first:

    $ printf "abcdef\n" | (dd bs=1 skip=3 count=0 && dd)  2> /dev/null
    # incorrectly results in no output

After this commit, the `dd skip=3` process reads three bytes from the
file descriptor referring to stdin without draining the remaining
three bytes when it terminates:

    $ printf "abcdef\n" | (dd bs=1 skip=3 count=0 && dd)  2> /dev/null
    def
2023-03-11 20:56:37 +00:00
Miles Liu
b8d9552ef5
shred: fix permissions_set_readonly_false clippy error 2023-03-11 14:45:42 +08:00
Daniel Hofstetter
97b51df2bc od: add missing backticks 2023-03-10 15:24:33 +01:00
Daniel Hofstetter
62826143b5 od: regroup constants 2023-03-10 15:07:40 +01:00
Daniel Hofstetter
fa7550cad9 od: expand some wildcard imports 2023-03-10 15:06:07 +01:00
Miles Liu
f406b56f4a
timeout: fix subprocess is never terminated 2023-03-10 18:08:54 +08:00
Koki Ueha
e3d501fca1 printenv: move help strings to markdown file 2023-03-09 14:56:00 +00:00
wuseyu
7598404345
nl: move help strings to a markdown file (#4477) 2023-03-09 10:42:39 +01:00
IZUMI-Zu
308760d488
uname: doc format 2023-03-08 20:46:18 +08:00
IZUMI-Zu
0bb557bf25 uname: move help strings to a markdown file 2023-03-08 16:57:25 +08:00
Sylvestre Ledru
8f623464ce
Merge pull request #4472 from wuseyu/dev
env: move help strings to a markdown file
2023-03-08 09:10:26 +01:00
Sylvestre Ledru
68b58453df
Merge pull request #4474 from papparapa/csplit-move-help-strings-to-md-file
csplit: move help strings to markdown file
2023-03-07 17:33:51 +01:00
Terts Diepraam
69406e7d52
Merge pull request #4439 from Joining7943/sleep-fix-panic-adding-durations
`sleep`: Fix parsing of multiple inputs panics on overflow, some whitespace issues ...
2023-03-07 16:32:43 +01:00
Terts Diepraam
093e15766f
Merge pull request #4473 from papparapa/hostname-move-help-strings-to-md-file
hostname: move help strings to markdown file
2023-03-07 15:44:55 +01:00
Joining7943
71bbebdc76 sleep: Fix whitespace issues. Don't panic when adding durations.
Refactor error propagation and use show_error! instead of USimpleError.
2023-03-07 13:33:49 +01:00