Michel Lind
5de030f119
uuhelp_parser: add links to homepage and repo
...
When viewing the crate right now, apart from via looking at the dependencies
it's hard to find the associated project and repository.
Add the missing info.
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2024-01-05 22:21:28 -06:00
Daniel Hofstetter
e13f0d80ee
Merge pull request #5778 from RenjiSann/main
...
ls: Support QUOTING_STYLE environment variable
2024-01-05 15:55:23 +01:00
Sylvestre Ledru
e64a0b4a26
Various fixes
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
aabf5fa577
cp: manages target with trailing '/'
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
cb27b9c9c3
path_ends_with_terminator: rustdoc + unittest
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
108dc4a0cd
Move path_ends_with_terminator from mv into uucore
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
4c698d58e0
mv: support the case mkdir a && mv a e/
2024-01-05 12:56:24 +01:00
Samuel Tardieu
e56682893f
uucore: fix style in tests
...
- `Path::new()` returns a `&Path` and does not need to be dereferenced
- Some types can be deduced from the context and are well visible
already (`parse_size_u128()` or `from_bytes()`)
2024-01-05 10:14:27 +01:00
Ikko Eltociear Ashimine
9dca071b69
Fix typo in signals.rs ( #5781 )
...
* Fix typo in signals.rs
occured -> occurred
* Remove "occurred" from spell-checker:ignore
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-05 07:30:23 +01:00
cre4ture
9b3cc5437c
head: head_backwards for non-seekable files like /proc/* or fifos (named pipes) ( #5732 )
...
* implement head_backwards for non-seekable files like /proc/* or pipes
Signed-off-by: Ulrich Hornung <hornunguli@gmx.de>
2024-01-05 00:25:59 +01:00
Dorian Péron
6760d63539
ls: Fix clippy warning
2024-01-04 16:51:30 +01:00
Dorian Péron
e30f191579
ls: Handle the use of QUOTING_STYLE variable
2024-01-03 18:37:51 +01:00
Daniel Hofstetter
e4fbc31714
du: ignore duplicate names with --files0-from
2024-01-03 09:39:16 +01:00
Sylvestre Ledru
8df064e1fa
Merge pull request #5772 from cakebaker/du_files0_from_zero_length_file_name
...
du: show error for nul names with `--files0-from`
2024-01-02 19:53:15 +01:00
Daniel Hofstetter
239e5426e6
du: show error for nul names with --files0-from
2024-01-02 16:06:41 +01:00
Daniel Hofstetter
9f257adf59
Merge pull request #5765 from sylvestre/handle-full
...
handle the error when stdout is full
2024-01-02 08:31:19 +01:00
Sylvestre Ledru
f53f9b6496
handle the error when stdout is full
...
Avoid panic when using
seq 1 >/dev/full
Should move tests/csplit/csplit-io-err.sh from ERROR to SKIP
2024-01-01 17:00:10 +01:00
Daniel Hofstetter
01e12120c1
mv: simplify condition
2024-01-01 16:48:06 +01:00
Daniel Hofstetter
5673f32c63
cp: show error if source & dest are same file
2023-12-31 16:01:34 +01:00
Sylvestre Ledru
b07ea957d3
rm: improve the code a tiny bit
2023-12-31 12:03:42 +01:00
Sylvestre Ledru
5fc01f718a
Merge pull request #5747 from Ato2207/fix_docs
...
Fix docs issues.
2023-12-30 19:28:54 +01:00
Vardhan Patil
d990021572
cksum: remove redundant guard
2023-12-30 20:39:09 +05:30
Vardhan Patil
e7cb4e9ff0
cksum: properly handle cases where --lenghth is 0 or >512
2023-12-30 20:28:03 +05:30
Atomei Alexandru
5ade45f8e9
Merge branch 'main' into fix_docs
2023-12-30 15:43:54 +02:00
Vardhan Patil
aec0cfa6e3
cksum: remove commented code
2023-12-30 16:05:20 +05:30
Vardhan Patil
7caa0bcdea
cksum: fix formatting in cksum.rs
2023-12-30 16:02:10 +05:30
Vardhan Patil
037073d852
cksum: make the output formatting match GNU
2023-12-30 15:59:29 +05:30
Sylvestre Ledru
138b11efbd
remove extra spaces
2023-12-30 09:53:32 +01:00
Vardhan Patil
231987b109
cksum: create initial implementation of the --length option
2023-12-30 12:48:19 +05:30
Matei Mantu
21d09dd404
ls: unquoted names should be indented with a space if there is a quoted name ( #5740 )
...
* ls: change indentation when file names include quotes to match GNU's
* display_grid: Changed order of parameters because it made more sense
* ls -l: Add padding for unquoted filenames
* Fix checking for quoted filenames
* Simplify if
2023-12-29 15:19:26 +01:00
Sylvestre Ledru
448e4c2224
Merge pull request #5745 from cakebaker/cp_adapt_warning
...
cp: adapt warning if source is used more than once
2023-12-29 15:09:24 +01:00
Alexandru-Constantin Atomei
d15981650a
Fixed one typo
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
1e5244765d
Made one more modification to test usage string.
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
e61318413e
Added documentation for the vdir command.
2023-12-29 15:08:50 +01:00
Alexandru-Constantin Atomei
ce28ae5c02
Fixed more and test docs
2023-12-29 15:08:50 +01:00
Sylvestre Ledru
f8f82774c3
Merge pull request #5696 from dvalere/my-conts
...
src: Fixing typos in signatures for the argument parser
2023-12-29 15:08:39 +01:00
Daniel Hofstetter
7025619325
cp: adapt warning if source is used more than once
2023-12-29 10:24:08 +01:00
Daniel Hofstetter
9bb725cefc
clippy: fix warnings introduced by Rust 1.75
2023-12-28 18:17:06 +01:00
Sylvestre Ledru
2c0f15be55
install: if run as root, revert the uid & gid to root
2023-12-28 10:06:13 +01:00
Sylvestre Ledru
0fb3ffb8ad
install: document the need_copy function
2023-12-28 10:05:44 +01:00
Sylvestre Ledru
c0206c5ea4
install: document the need_copy function
2023-12-28 10:05:28 +01:00
Sylvestre Ledru
ce18f8a2a1
install: split the need_copy check
2023-12-28 10:03:42 +01:00
Daniel Hofstetter
179f0a7c3c
Merge pull request #5733 from sylvestre/getegid_geteuid
...
use our getegid & geteuid wrappers function instead of libc calls
2023-12-28 08:49:34 +01:00
Sylvestre Ledru
ad16313c59
head: -c allocate memory as needed ( #5704 )
...
* head: -c allocate memory as needed
Improve the execution of tests/head/head-c.sh
* simplify the code
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-28 07:15:01 +01:00
Sylvestre Ledru
c38a43210c
use our getegid & geteuid wrappers function instead of libc calls
2023-12-28 00:35:20 +01:00
Daniel Hofstetter
0701f535ac
cp: fix backup of destination symlink
2023-12-27 15:39:54 +01:00
Matei Mantu
bf26eda786
install: remove / from end of path if it exists so as not to mess with .exists() ( #5730 )
...
* remove / from end of path if it exists so as not to mess with .exists()
* install: fix / removal from path
* Fix clippy warnings
* Add test for install target ends with /
2023-12-27 13:37:17 +01:00
Darius
edbb7d5b02
join: fixed parameter
...
basenc: fixed parameter
cut: fixed parameter
mkdir: fixed parameter
nohup: fixed parameter
pr: fixed parameter
printenv: fixed parameter
printf: added parameters
runcon: fixed typo
shuf: fixed typo
sum: fixed typo
uniq: fixed parameter
unlink: fixed parameter
2023-12-26 16:13:18 +01:00
Sylvestre Ledru
167acb5147
Merge pull request #5484 from cakebaker/cp_l_with_dest_hardlink_to_source
...
cp --link: don't fail if destination is hardlink to source
2023-12-26 16:12:15 +01:00
Sylvestre Ledru
30eb77ac79
du: implement files0-from ( #5721 )
...
* du: implement files0-from
Should make tests/du/files0-from-dir pass
* du: prepare tests/du/files0-from.pl
* fix the build on Windows
* add testfile to the ignore list
* remove useless comment
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* mkdir is enough
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* address review comments
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-26 14:40:31 +01:00