Sylvestre Ledru
9920f13a34
Merge pull request #5640 from tertsdiepraam/tr-no-output
...
`tr`: operate on bytes instead of chars
2023-12-19 11:42:44 +01:00
Sylvestre Ledru
3d42619027
Merge pull request #5674 from cakebaker/ls_ignore_invalid_block_size_from_env_vars
...
ls: ignore invalid block size from env vars
2023-12-19 11:11:11 +01:00
Daniel Hofstetter
d8f299eb48
ls: mention config.hyperlink in comment
2023-12-19 10:50:36 +01:00
Daniel Hofstetter
ebfbd8b1fe
ls: rename display_file_name -> display_item_name
2023-12-19 10:50:36 +01:00
Daniel Hofstetter
a5606613bd
ls: ignore invalid block size from env vars
2023-12-19 10:02:34 +01:00
Sylvestre Ledru
52af36d80b
Merge pull request #5673 from tertsdiepraam/expr-fix-comparison
...
`expr`: coerce to string before comparing values
2023-12-18 22:50:42 +01:00
Terts Diepraam
00b9cbe09e
expr: coerce to string before comparing values
2023-12-18 22:24:31 +01:00
Sylvestre Ledru
b32c93ee5e
Merge pull request #5672 from cakebaker/ls_hyperlink_dirs
...
ls: support hyperlinks for dir names
2023-12-18 18:24:27 +01:00
Sylvestre Ledru
ece9e91593
Merge pull request #5671 from Yykz/wc_args_override
...
wc: fix arguments not overriding
2023-12-18 15:56:10 +01:00
Daniel Hofstetter
917c6a4743
ls: support hyperlinks for dir names
2023-12-18 15:26:09 +01:00
Daniel Hofstetter
8c6463c525
ls: extract "create_hyperlink" function
2023-12-18 14:25:13 +01:00
Sylvestre Ledru
0fa074fcba
Merge pull request #5629 from cakebaker/ls_hyperlink_encode
...
ls: encode path when using --hyperlink
2023-12-18 13:38:08 +01:00
Yykz
bd22aba03b
make args of wc overriding
2023-12-18 12:47:37 +01:00
Daniel Hofstetter
e79eb097af
Merge pull request #5656 from sylvestre/ls-var
...
ls: manages the COLOR and COLORTERM variables
2023-12-18 07:16:38 +01:00
Sylvestre Ledru
5b45159996
Improve the comment
2023-12-17 17:40:44 +01:00
Sylvestre Ledru
af2625c8ce
fix order
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-17 17:39:02 +01:00
Akmal
052f38f14d
unexpand: remove crash! macro ( #5588 )
...
* unexpand_macro_fixed
* unexpand
* Remove crash
* Passed local test case
* Small changes
* unexpand: remove #[allow(clippy::cognitive_complexity)]
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-17 16:43:00 +01:00
Sylvestre Ledru
35ae43e71f
Merge pull request #5620 from lcheylus/openbsd-utmpx
...
Support unix feature on OpenBSD (utmpx not supported)
2023-12-16 18:15:11 +01:00
Daniel Hofstetter
9167a84358
ls: enable "colors" feature
2023-12-16 17:17:44 +01:00
Sylvestre Ledru
afc6ac8114
Apply change from c32e730a1f
2023-12-16 10:30:47 +01:00
Sylvestre Ledru
6621a1d6d6
Apply the change from c32e730a1f too
2023-12-16 10:30:17 +01:00
Sylvestre Ledru
1bfac9b25a
Merge branch 'main' into openbsd-utmpx
2023-12-16 10:29:16 +01:00
Sylvestre Ledru
f6d3f9afbf
ls: manages the COLOR and COLORTERM variables
...
Should fix GNU tests/ls/color-term.sh
2023-12-16 09:50:37 +01:00
Sylvestre Ledru
01000a37a3
fix two minor clippy warnings
2023-12-16 09:40:38 +01:00
Daniel Hofstetter
f5b228d876
Merge pull request #5651 from tertsdiepraam/remove-parsemode
...
`mknod`: remove `parsemode.rs`
2023-12-15 16:36:32 +01:00
Daniel Hofstetter
88428cf5d7
Merge pull request #5649 from tertsdiepraam/remove-collect-lossy-and-ignore
...
all: remove `collect_{lossy,ignore}` calls where possible
2023-12-15 16:30:08 +01:00
Terts Diepraam
30c27c143c
mknod: remove parsemode.rs
...
This file was entirely unused, so it's probably safe to remove it
2023-12-15 15:56:41 +01:00
Terts Diepraam
c32e730a1f
all: remove collect_{lossy,ignore} calls where possible
2023-12-15 14:38:27 +01:00
Arpit Bhadauria
3a7a3bf639
fmt: remove crash! macro ( #5589 )
...
* fmt: remove crash! macro
* Fix styling in fmt
* Revert "Fix styling in fmt"
This reverts commit 002e02f50c5bfebfc69fb1acb86d39a36d96d97d.
* Revert "fmt: remove crash! macro"
This reverts commit d65a3f85a1840d0c1d2e32f927e951a62258370f.
* Replace crash! with unreachable! macro
* Remove crash! import
* Remove unreachable! from fmt
* keep the helpful comment
* Fix lint and format issues
* review fixes
2023-12-15 12:14:31 +01:00
Sylvestre Ledru
f248cc641c
Merge pull request #5614 from Arp-1/feat-refactor-expr
...
expr: Optimizing for integer values
2023-12-14 18:50:50 +01:00
Terts Diepraam
7f23faf899
expr: clean up conversion from bigint to usize
2023-12-14 16:35:56 +01:00
Daniel Hofstetter
42558344f1
ls: enable "args override self"
2023-12-12 14:23:51 +01:00
Daniel Hofstetter
89cb4acb99
ls: encode path when using --hyperlink
2023-12-12 10:03:55 +01:00
Arpit Bhadauria
3bf966df56
remove from trait for NumOrStr
2023-12-11 20:47:36 +00:00
Laurent Cheylus
e1032e1f06
who: tool unsupported on OpenBSD
...
- utmpx not supported on OpenBSD
- add src/uu/who/src/platform directory and platform/mod.rs for conditional compilation according
to target_os
- platform/openbsd.rs: implementation on OpenBSD (unsupported tool)
- platform/unix.rs: implementation on other OS
- src/uu/who/src/who.rs: use platform module for uucore::main function
2023-12-11 18:23:35 +01:00
Laurent Cheylus
fdd6ecb713
users: tool unsupported on OpenBSD
...
- utmpx not supported on OpenBSD
- add src/uu/users/src/platform directory and platform/mod.rs for conditional compilation
according to target_os
- platform/openbsd.rs: implementation on OpenBSD (unsupported tool)
- platform/unix.rs: implementation on other OS
- src/uu/users/src/users.rs: use platform module for uucore::main function
2023-12-11 18:23:35 +01:00
Laurent Cheylus
8c6d722916
uptime: tool unsupported on OpenBSD
...
- utmpx not supported on OpenBSD
- add src/uu/uptime/src/platform directory and platform/mod.rs for conditional compilation
according to target_os
- platform/openbsd.rs: implementation on OpenBSD (unsupported tool)
- platform/unix.rs: implementation on other OS
- src/uu/uptime/src/uptime.rs: use platform module for uucore::main function
2023-12-11 18:23:35 +01:00
Laurent Cheylus
d3e6e7a947
pinky: tool unsupported on OpenBSD
...
- utmpx not supported on OpenBSD
- add src/uu/pinky/src/platform directory and platform/mod.rs for conditional compilation
according to target_os
- platform/openbsd.rs: implementation on OpenBSD (unsupported tool)
- platform/unix.rs: implementation on other OS
- src/uu/pinky/src/pinky.rs: use platform module for uucore::main function
2023-12-11 18:23:35 +01:00
Laurent Cheylus
38ea40d0bf
nohup: fix for OpenBSD with _vprocmgr_detach_from_console function
2023-12-11 18:23:35 +01:00
Laurent Cheylus
94537d3b34
id: fix support for OpenBSD
...
- add target_os cfg for pline function
- add target_os cfg for auditd function (void on OpenBSD)
2023-12-11 18:23:35 +01:00
Laurent Cheylus
d239b2f47b
chroot: add OpenBSD support for set_groups function
2023-12-11 18:23:35 +01:00
Daniel Hofstetter
6711dd5694
ls: make --block-size and --human-readable/--si
...
override each other
2023-12-11 16:38:55 +01:00
Terts Diepraam
181cfc885b
Merge pull request #5634 from cakebaker/ls_use_show_dir_name
...
ls: use show_dir_name to output dir name
2023-12-11 14:38:47 +01:00
Daniel Hofstetter
3dad5d4d56
Merge pull request #5635 from tertsdiepraam/fix-echo-override
...
`echo`: make `-e` and `-E` override each other
2023-12-11 14:21:15 +01:00
Terts Diepraam
bc5b5e013a
tr: operate on bytes instead of chars
2023-12-11 13:35:17 +01:00
Terts Diepraam
191eb9ac12
echo: make -e and -E override each other
2023-12-11 10:53:55 +01:00
Daniel Hofstetter
3dab2b7390
ls: use show_dir_name to output dir name
2023-12-11 09:33:36 +01:00
Sylvestre Ledru
4442b35370
Merge pull request #5626 from cakebaker/ls_invalid_block_size
...
ls: handle invalid block size as GNU does
2023-12-11 07:49:38 +01:00
Ian Douglas Scott
db91e12a1d
Fix build on Redox, and add stat to Redox feature
2023-12-11 04:38:17 -08:00
Arpit Bhadauria
824371d884
style lint fixes
2023-12-11 02:12:24 +00:00