Commit graph

71 commits

Author SHA1 Message Date
Walid ebcd86df07
env: adds --ignore-signal (#6377)
* env: adds --ignore-signal
This commit implement #6164.

* env: handle STOP signal and fix styling issue

* env: fix encoded bytes

* env: adds SAFETY comment and handle special signals in ignore_signal

* env: fix parsing to have compatible behaviour

* env: remove derive from Options

* env: changed safety comment, handle duplications after parsing and non-unix cfg

* env: adds tests for ignore-signal parsing and invalid and special signals

* env: change signal values to be non-constant

* env: adds testing for signal ignoring

* env: styling and remove unix specific derive

* test_env: add SIGSTOP to cspell workspace wordlist

* env: makes signal handling unix specific

* env: make ignore-signal function invocation unix specific

* test_env: make signal vector use slices ref instead of vec (linter)

* env: makes ignore-signal in options unix specific

* test_env: add unix specific import
2024-05-23 22:01:39 +02:00
Ulrich Hornung c62ba559d0 env: support string args by "-S", "-vS" or "--split-strings" 2024-03-19 00:45:05 +01:00
Sylvestre Ledru 2ec4e9f784 mv: preserve the xattr
Should make tests/mv/acl pass
2024-01-16 13:12:02 +01:00
zoze0 550f3b0c48
uucore: add support for loongarch64 (#5574)
* uucore: add support for loongarch64

* add loongarch

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-11-23 17:41:11 +01:00
Terts Diepraam 3d0c8ae6e7 Expand CONTRIBUTING.md (WIP) 2023-11-02 18:41:16 +01:00
Sylvestre Ledru 30f1fceddc
add nushell to the list of ignored names 2023-09-23 09:29:00 +02:00
Ben Schofield 4d78ca47b1 Add Spell ignore
Add `samply` and `flamegraph` to spell ignore lists.
2023-08-24 11:15:03 -06:00
Daniel Hofstetter 6f5416bddb cspell: ignore oranda.json 2023-07-08 06:58:33 +02:00
Joining7943 946aab37ed Cargo: Bump fundu version v0.3.0 -> v0.4.2. Adjust test in test_tail. 2023-03-12 15:37:44 +01:00
Sylvestre Ledru 24e78cb027 add libfuzzer as a word 2023-03-10 00:03:26 +01:00
Joining7943 1d7447d42e tests/util: Add setting timeout for UChild::kill and run and wait methods in UCommand and UChild.
Additional notes:
* Set default timeout to 30s
* Fix UChild::kill to always fail on timeout if zero
2022-12-17 21:53:39 +01:00
Terts Diepraam 21e691c3b9 cp: add progress bar
Adds the `-g` and `--progress` flags to enable a progress bar via
indicatif.
2022-11-11 00:44:42 +01:00
Terts Diepraam dfd0bf1d6d docs: create new adaptive svg logo 2022-09-01 10:55:45 +02:00
Terts Diepraam a28dd25cb3 all: fix spelling errors 2022-08-20 13:24:06 +02:00
Sylvestre Ledru 3ea6720d46 Update extension ID for rust-analyzer vscode extension recommendation 2022-05-21 09:22:24 +02:00
gmnsii c2e214bd99
Add dir and vdir utils (based on ls)
Fix issue #3163

They are basically ls with some different options.
2022-04-15 17:30:40 +02:00
David Carlier d8102503bf fsext solaris/illumos build fix 2022-03-21 23:20:22 +00:00
Terts Diepraam 69a94e412b docs: use rust libraries for downloading and unzipping tldr 2022-02-19 01:27:19 +01:00
Roy Ivy III ba2bf79099 maint/dev ~ (VSCode) update cspell settings 2022-02-12 15:26:59 -06:00
Roy Ivy III 0b8f54b739 maint/dev ~ (VSCode) add shell script formatter to recommendations 2022-02-12 15:26:59 -06:00
Tillmann Rendel 3bfcf78c03
Tweak comment in extensions.json
To flush the highlighting cache.
2022-02-01 23:38:18 +01:00
Tillmann Rendel d26f6f0f2f
Format cspell config and tweak comments
Mostly to flush the highlighting cache on GitHub, but hopefully it also
improves the file.
2022-02-01 23:36:50 +01:00
Tillmann Rendel 90b96095af
Merge branch 'main' into gitattributes 2022-02-01 23:33:39 +01:00
Tillmann Rendel 587e6d2ded
Move back to .vscode folder 2022-02-01 23:33:24 +01:00
Tillmann Rendel 864b09c9b8
vscode: only recommend rust-analyzer (#3020)
Previously, both RLS and Rust-Analyzer were recommended, now we just recommend RA.
2022-02-01 19:47:49 +01:00
Tillmann Rendel 420045210c
Try moving .gitattributes to root 2022-02-01 15:27:59 +01:00
Tillmann Rendel dbbabedec6
Allow comments in VS Code configuration
Since JSON formally cannot contain comments, GitHub highlights comments
in JSON files as errors, but the configuration files for VS Code
in this repository contain comments. This commit configures GitHub to
use a different syntax highlighter for the affected files.
2022-02-01 15:09:51 +01:00
Zachary Dremann ad847fa645 Add codegen to the jargon wordlist 2022-01-30 08:40:29 -05:00
Terts Diepraam dd311b294b wc: fix counting files from pseudo-filesystem 2022-01-28 19:08:44 +01:00
Sylvestre Ledru c7fc0a703b
Merge pull request #2893 from g-k/2888-rand-0.8
update rand crate to 0.8
2022-01-25 23:23:43 +01:00
Greg Guthe 2b19dd20ae cspell: add impls to abbrevs in acronyms+names list 2022-01-24 20:40:57 -05:00
Greg Guthe a950c98bcf cspell: add endianness to jargon list 2022-01-24 20:40:57 -05:00
Terts Diepraam e3558ff3a8 docs: additional spelling fixes 2022-01-21 19:43:40 +01:00
Terts Diepraam 274459f2ed docs: spelling fixes 2022-01-21 18:28:51 +01:00
Terts Diepraam f60c36f242
Merge pull request #2610 from miDeb/cp/abuse
cp: handle edge cases when dest is a symlink
2022-01-11 00:34:55 +01:00
Jan Verbeek f2ddae93fa uucore::entries: Make Passwd::locate and Group::locate thread-safe 2021-11-26 14:48:33 +01:00
Roy Ivy III ae05bffbab docs/spell ~ add 'vendor' directory exception for spell-checker 2021-11-19 18:04:55 -06:00
Michael Debertol bb35b0c37b uucore: add FileInformation 2021-11-01 22:38:44 +01:00
Sylvestre Ledru 3d867fcf7c
Merge pull request #2684 from blyxxyz/hostname-cleanup
hostname: Cleanup
2021-09-16 22:22:34 +02:00
Jan Verbeek 3f37ddbd22 hostname: Cleanup
- Attach context to I/O errors
- Make flags override each other
- Support invalid unicode as argument
- Call WsaCleanup() even on panic
- Do not use deprecated std::mem::uninitialized()
2021-09-15 13:45:02 +02:00
Sylvestre Ledru 7eaae75bfc add a github action job to identify unused deps 2021-09-15 12:06:50 +02:00
Jan Verbeek 1edd2bf3a8 Do not discard non-OS error messages 2021-09-14 15:11:54 +02:00
Jan Verbeek 259f18fcab Update message quoting and filename printing 2021-09-07 19:49:01 +02:00
Sylvestre Ledru 6226a03214
Merge pull request #2624 from miDeb/cp/acl
cp: correctly copy mode, ownership, acl and context
2021-09-03 20:18:13 +02:00
Michael Debertol 8b74562820 cp: correctly copy mode, ownership, acl and context
Fix a mix-up between ownership and mode. The latter (mode / file permissions)
can also be set on windows (which however only affects the read-only flag),
while there doesn't seem to be a straight-forward way to change file ownership
on windows.

Copy the acl as well when copying the mode. This is a non-default feature and can be
enabled with --features feat_acl, because it doesn't seem to work on CI.
It is only available for unix so far.

Copy the SELinux context if possible.
2021-09-01 00:16:22 +02:00
Jan Verbeek 4f891add5a uucore: Add a Quotable extension trait for displaying filenames 2021-08-31 22:07:24 +02:00
Jan Verbeek b4c95d49d8
pwd: Properly resolve logical working directory (#2604)
* pwd: Properly resolve logical working directory

* fixup! pwd: Properly resolve logical working directory

* fixup! pwd: Properly resolve logical working directory
2021-08-28 22:31:20 +02:00
Jan Verbeek afb460f4ca rmdir: match GNU
- Implement all of GNU's fiddly little details
- Don't assume Linux for error codes
- Accept badly-encoded filenames
- Report errors after the fact instead of checking ahead of time
- General cleanup

rmdir now passes GNU's tests.
2021-08-28 02:26:01 +02:00
Jan Verbeek 0f1e79fe29 wc: Fix linters 2021-08-26 01:38:16 +02:00
Jan Verbeek e5d6c6970b yes: Cleanup
Report errors properly instead of panicking.

Replace zero_copy by a simpler specialized private module.

Do not assume splices move all data at once.

Use the modern uutils machinery.

Remove the "latency" feature. The time it takes to prepare the buffer
is drowned out by the startup time anyway.

yes: Add tests

yes: Fix long input test on Windows
2021-08-25 13:45:44 +02:00