Commit graph

5211 commits

Author SHA1 Message Date
Pat Laster
430652193b Fixed merge conflicts 2022-10-15 15:08:28 -05:00
Pat Laster
7e62945fd3
Merge branch 'main' into rm-correct-prompts 2022-10-15 14:58:13 -05:00
Sylvestre Ledru
23b0bb3da4
Merge pull request #3991 from tertsdiepraam/clap-4
Clap 4
2022-10-14 21:49:05 +02:00
Sylvestre Ledru
6fd64c83fa
Merge pull request #4048 from tertsdiepraam/package-install-docs
docs: add installation page with package managers
2022-10-14 21:15:54 +02:00
Terts Diepraam
5c676ac268 docs: add installation page with package managers 2022-10-14 17:11:27 +02:00
Terts Diepraam
cbc8427419 uudoc: update to clap 4 2022-10-14 16:47:39 +02:00
dependabot[bot]
4480d6d714
build(deps): bump smallvec from 1.9.0 to 1.10.0
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 06:43:33 +00:00
Pat Laster
21b066a58e Why is S_IWUSR showing up as a u16 on macos 2022-10-13 20:03:35 -05:00
Pat Laster
fddc8c9d9d More readable unix write permissions for directory using libc 2022-10-13 20:03:35 -05:00
Pat Laster
a3f35a726c Add override for prompting 2022-10-13 20:03:35 -05:00
Pat Laster
e11dd50eb4 Added comments 2022-10-13 20:03:35 -05:00
Pat Laster
355136936f Fixed force rm 2022-10-13 20:03:35 -05:00
Pat Laster
3a1098489e Small fix 2022-10-13 20:03:35 -05:00
Pat Laster
3c39a57da0 Check force position in rm 2022-10-13 20:03:35 -05:00
Pat Laster
50d2948aa1 Fixed rm --force argument not forcing prompt to not show up 2022-10-13 20:03:35 -05:00
Pat Laster
6856ce0bf4 Fixed handle_writable_directory on windows 2022-10-13 20:03:35 -05:00
Pat Laster
1f50df2af6 Fixed spelling error 2022-10-13 20:03:35 -05:00
Pat Laster
30adc8e037 Added windows version of handle_writable_directory 2022-10-13 20:03:35 -05:00
Pat Laster
6245029445 rm: rm3 now passes 2022-10-13 20:03:35 -05:00
Terts Diepraam
23fc898f79 chcon: fix update to clap 4 2022-10-13 23:05:02 +02:00
Terts Diepraam
14e3c5176c realpath: require arguments again 2022-10-13 20:06:27 +02:00
Terts Diepraam
b0c200e831 env: handle - correctly again 2022-10-13 20:06:02 +02:00
Terts Diepraam
d6753d8914 uucore: remove string leak in format_usage 2022-10-13 17:55:02 +02:00
Terts Diepraam
d7b08a01b1 yes: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
bfd310553d whoami: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
53567deb0f who: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
92c4b32eeb wc: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
60d51910e6 users: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
e99969b678 uptime: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
12048cda68 unlink: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
23c8d8b0ea uniq: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
3a234b3b09 unexpand: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
db464bbeb5 uname: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
e94ef2f8b5 tty: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
1d147c03f6 tsort: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
9cce0bed7f truncate: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
ea8015589b true: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
acf4ba75fe tr: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
e54e2e0252 touch: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
86cbdbb19e timeout: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
72d7287b11 test: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
b15c6eb293 tee: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
c8536c0985 tail: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
0611bd6fda tac: update to clap 4 2022-10-13 17:50:43 +02:00
Terts Diepraam
c7a7c4f2f2 sync: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
02f6d4d5c8 sum: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
5722e47474 stty: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
b6a4f32889 stdbuf: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
1f67351efa stat: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
261b18d6f3 split: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
c11d6b45cc sort: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
6a98c4c7d0 sleep: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
4d52449667 shuf: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
dfdd55b428 shred: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
4cfc90c077 seq: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
d92f2f6195 runcon: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
634a4aab8e rmdir: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
c228556791 rm: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
63147b9c83 relpath: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
2faf0b62df realpath: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
b2cf7be43f readlink: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
9dc9e44cd5 pwd: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
62b963a353 ptx: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
aad802616b printf: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
63b751f351 printenv: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
8ac1eaf2d6 pr: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
b5ab886f4d pinky: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
a2023c8d15 pahtchk: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
e346253a30 paste: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
cdde016501 od: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
c99d89152a numfmt: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
d17c99a3cf nproc: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
405e5fba67 nohup: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
4b574d6228 nl: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
8b9971c54e nice: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
5faae817ba mv: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
ca135d3ef3 more: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
1e9e790b7c mktemp: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
1d6c5d14b2 mknod: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
d509c16a22 mkfifo: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
67ba0c8195 dir, vdir: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
f432e5809c mkdir: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
c6cff20f18 ls: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
eadbea74d6 logname: update to clap 4 2022-10-13 17:50:36 +02:00
Terts Diepraam
56ea8bb4ac ln: update to clap 4 2022-10-13 17:50:33 +02:00
Terts Diepraam
838479f86a link: update to clap 4 2022-10-13 17:50:33 +02:00
Terts Diepraam
6eb7c64f7a kill: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
879a9bec29 join: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
a529a27a23 install: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
a3a50eb4ef id: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
0f642451e1 hostname:" update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
0253a0bcfa hostid: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
4f3c94968e head: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
b95c5ce279 hashsum: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
6df2187397 groups: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
6ee19a42a4 fold: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
c485c47503 fmt: update to cla p 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
8260090ea1 false: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
458c2c8b85 factor: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
86d24176e4 expr: update to clap 4 and remove custom argument parsing 2022-10-13 17:50:29 +02:00
Terts Diepraam
6cc6f35155 expand: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
b7c1216a1a env: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
b007318b51 echo: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
8f3c43b238 du: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
98673ad76f dirname: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
aaf1e362bf dircolors: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
811a06fd66 df: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
2420830e9d dd: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
8183f4cf06 date: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
5556d23e21 cut: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
e8d24f97ae csplit: update to clap 4 2022-10-13 17:50:29 +02:00
Terts Diepraam
042bb3c4e3 cp: update to clap 4 2022-10-13 17:50:26 +02:00
Terts Diepraam
34ad013155 comm: update to clap 4 2022-10-13 17:50:26 +02:00
Terts Diepraam
73a7b7f982 cksum: update to clap 4 2022-10-13 17:50:26 +02:00
Terts Diepraam
a6816c1613 chroot: update to clap 4 2022-10-13 17:50:23 +02:00
Terts Diepraam
c6aabd9023 chmod: update to clap 4 2022-10-13 17:50:23 +02:00
Terts Diepraam
624700f835 chown: update to clap 4 2022-10-13 17:50:23 +02:00
Terts Diepraam
075245235e chgrp: update to clap 4 2022-10-13 17:50:23 +02:00
Terts Diepraam
9605c7f135 uucore: update to clap 4 2022-10-13 17:50:17 +02:00
Terts Diepraam
7a3cb35352 chcon: update to clap 4 2022-10-13 16:22:47 +02:00
Terts Diepraam
717402b46a cat: update to clap 4 2022-10-13 16:22:47 +02:00
Terts Diepraam
649dab36f1 basename: update to clap 4 2022-10-13 16:22:45 +02:00
Terts Diepraam
26309dc9d7 base{32, 64, enc}: update to clap 4 2022-10-13 16:22:24 +02:00
Terts Diepraam
cb8831af71 arch: update to clap 4 2022-10-13 16:20:46 +02:00
Terts Diepraam
28127a433e
Merge pull request #4043 from sylvestre/clippy
Fix some clippy warnings
2022-10-13 14:03:57 +02:00
Sylvestre Ledru
6e14dea73b Fix some clippy warnings
Fixed with `cargo clippy --features unix  --fix`
and manually
2022-10-13 09:07:22 +02:00
Sylvestre Ledru
26cc5b9c20
Merge pull request #4011 from tertsdiepraam/env-signal-handling
`env`: reraise signal from child process
2022-10-13 09:02:21 +02:00
Sylvestre Ledru
32b1fc6420
Merge pull request #4039 from uutils/dependabot/cargo/dunce-1.0.3
build(deps): bump dunce from 1.0.2 to 1.0.3
2022-10-12 21:56:56 +02:00
dependabot[bot]
68f2b44c88
build(deps): bump dunce from 1.0.2 to 1.0.3
Bumps [dunce](https://gitlab.com/kornelski/dunce) from 1.0.2 to 1.0.3.
- [Release notes](https://gitlab.com/kornelski/dunce/tags)
- [Commits](https://gitlab.com/kornelski/dunce/commits/v1.0.3)

---
updated-dependencies:
- dependency-name: dunce
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-12 16:54:02 +00:00
dependabot[bot]
5261a307f7
build(deps): bump libc from 0.2.132 to 0.2.135
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.132 to 0.2.135.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.135)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-12 12:55:41 +00:00
Terts Diepraam
d9f36eed6e chroot: declare fs feature of uucore in Cargo.toml 2022-10-12 10:55:42 +02:00
Sylvestre Ledru
b7c298afee
Merge pull request #4020 from ackerleytng/main
dircolors: align TERM matching behavior with that of GNU dircolors
2022-10-12 09:27:34 +02:00
Terts Diepraam
f15c4f2d3e Version 0.0.16 2022-10-11 23:03:39 +02:00
Sylvestre Ledru
d768b19f2b chroot: improve support of --skip-chdir
Should unbreak tests/misc/chroot-fail.sh
2022-10-10 14:07:45 +02:00
Sylvestre Ledru
ad0ca2f042
Merge pull request #3973 from jfinkels/cp-directory-preserve-permissions
cp: preserve permissions when copying directory and don't terminate early on inaccessible file
2022-10-10 08:16:27 +02:00
Ackerley Tng
1239fc477b dircolors: align TERM matching behavior with that of GNU dircolors 2022-10-09 18:47:20 -07:00
Jeffrey Finkelstein
b89e8e54c4 cp: continue directory walk if file inaccessible
Stop `cp` from terminating prematurely if a file in a directory is
inaccesible due to insufficient permissions.
2022-10-09 17:31:41 -04:00
Jeffrey Finkelstein
2450493302 cp: preserve permissions when copying directory
Make cp preserve the permissions of a directory when copying
it. Before this commit,

    cp -pR src/ dest/

failed to copy the permissions of `src/` to `dest/`. After this
commit, the permissions are correctly copied.
2022-10-09 17:29:29 -04:00
Jeffrey Finkelstein
c370b678b1 cp: refactor copy_attributes() function
Create a `copy_attributes()` function to contain the loop that copies
each of a specified set of attributes in turn.
2022-10-09 17:28:43 -04:00
jfinkels
349320ae61
Merge branch 'main' into cp-symbolic-link-loop 2022-10-09 17:28:30 -04:00
Terts Diepraam
7d8917bb35
Merge pull request #4003 from sylvestre/sync2
sync: various compatibility improvement
2022-10-09 11:07:44 +02:00
Ackerley Tng
d84803b72f ls: align --ignore behavior with that of GNU ls 2022-10-08 16:54:07 -07:00
Terts Diepraam
86738ce6cf ls,stat: Show more info in long format 2022-10-09 00:27:32 +02:00
Terts Diepraam
ca820bf674 env: reraise signal from child process 2022-10-08 19:38:00 +02:00
Andrew Baptist
4922d34177 Match GNU semantics for missing EOF
While the rust coreutils semantics were arguably more correct,
they were different than the gnu split semantics when handling a
file without a trailing EOF. This patch addresses that difference
and allows passing one more GNU test suite.
2022-10-07 17:50:26 -04:00
Sylvestre Ledru
97dd4824e5
Merge pull request #3976 from andrewbaptist/implement_suffix_start
Add support for starting suffix numbers
2022-10-07 21:07:07 +02:00
Sylvestre Ledru
f255dcbf6d
Merge pull request #3979 from jfinkels/cp-cow-module
cp: move copy_on_write funcs to platform module
2022-10-07 14:58:45 +02:00
Sylvestre Ledru
88fb43c8e4
Merge branch 'main' into cp-symbolic-link-loop 2022-10-06 09:53:02 +02:00
Sylvestre Ledru
32112d627a
Add fiemap to the spelling 2022-10-06 09:34:48 +02:00
Jeffrey Finkelstein
8bfd96fb59 cp: correct error message on copying dir to itself
Correct the error message produced when attempting to copy a directory
into itself with `cp`. Before this commit, the error message was

    $ cp -R d d
    cp: cannot copy a directory, 'd', into itself, 'd'

After this commit, the error message is

    $ cp -R d d
    cp: cannot copy a directory, 'd', into itself, 'd/d'
2022-10-05 21:37:30 -04:00