Daniel Hofstetter
598dc79b69
df: test default blocksize in POSIX mode
2022-05-12 10:11:24 +02:00
Sylvestre Ledru
6a9a7d76fc
Merge pull request #3498 from jhscheer/fix_stat_redirect
...
stat: improve handling of stdin/fifo (fix #3485 )
2022-05-12 08:35:43 +02:00
Sylvestre Ledru
1ca4cf5ea7
Merge pull request #3512 from jfinkels/mktemp-invalid-template-path-sep
...
mktemp: error on path separator in template prefix
2022-05-12 08:34:50 +02:00
Sylvestre Ledru
c212f4a556
Merge pull request #3513 from cakebaker/portability_headers
...
df: implement POSIX conform header line
2022-05-12 08:33:50 +02:00
Daniel Hofstetter
a6b100a5ca
df: show error if provided block size is zero
2022-05-11 12:59:51 +02:00
Daniel Hofstetter
e26fed61b3
df: implement POSIX conform header line
...
It also fixes #3195
2022-05-11 12:59:47 +02:00
Jeffrey Finkelstein
2874f18950
mktemp: error on path separator in template prefix
...
Correct the error that arises from a path separator in the prefix
portion of a template argument provided to `mktemp`. Before this
commit, the error message was incorrect:
$ mktemp -t a/bXXX
mktemp: failed to create file via template 'a/bXXX': No such file or directory (os error 2) at path "/tmp/a/bege"
After this commit, the error message is correct:
$ mktemp -t a/bXXX
mktemp: invalid template, 'a/bXXX', contains directory separator
The code was failing to check for a path separator in the prefix
portion of the template.
2022-05-11 12:59:44 +02:00
Jan Scheer
d906f09e6e
stat: improve handling of stdin/fifo ( fix #3485 )
...
* fix https://github.com/uutils/coreutils/issues/3485
* improve the workaround from #3280
* add tests
2022-05-11 12:59:25 +02:00
Sylvestre Ledru
7d8b1de213
uniq: Disable one of the gnu test for failing too often
...
See: https://github.com/uutils/coreutils/issues/3509
2022-05-10 13:54:33 +02:00
jfinkels
ae580cd54a
Merge pull request #3482 from cakebaker/handle_posixly_correct
...
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-09 19:43:58 -04:00
Sylvestre Ledru
f65d72e334
also support for tests/touch/relative.sh
2022-05-08 21:52:12 +02:00
Sylvestre Ledru
d5569847bd
also support for tests/touch/no-rights.sh format
2022-05-08 21:50:12 +02:00
Daniel Hofstetter
f668b69a2c
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-08 14:46:31 +02:00
Sylvestre Ledru
56264ebece
Merge branch 'main' into 2884-time-0.3
2022-05-07 20:57:14 +02:00
Daniel Hofstetter
5a3933a882
df: fix "Size" header for multiples of 1000 & 1024
2022-05-06 15:37:52 +02:00
Sylvestre Ledru
06ef89b3d8
touch: improve the -d option support of other dates
2022-05-06 09:23:46 +02:00
Jan Scheer
f5ffa94129
test_stat: add tests for issues with stdin
...
* add tests for: https://github.com/uutils/coreutils/issues/3485
* add test for: https://github.com/uutils/coreutils/pull/3280
2022-05-05 20:39:50 +02:00
Sylvestre Ledru
75ea1f1fc3
Merge pull request #3457 from tertsdiepraam/clap-exit-code
...
`clap` exit code
2022-05-05 11:44:24 +02:00
Sylvestre Ledru
84f24aed8f
Merge pull request #3476 from ackerleytng/main
...
du: use USimpleError instead of set_exit_code
2022-05-05 07:59:20 +02:00
Sylvestre Ledru
cbe39b4154
Merge pull request #3456 from cakebaker/ticket_3193
...
df: fix "Size" column header
2022-05-05 07:58:48 +02:00
Terts Diepraam
1bb85acc71
nice: set exit code for clap errors to 125
2022-05-04 21:32:14 +02:00
Ackerley Tng
88a62c4922
du: use common error methods with show! instead of set_exit_code
2022-05-04 07:33:19 -07:00
anastygnome
70c451fa61
Add test for copying dangling symlink copy with dereference
...
Signed-off-by: anastygnome <noreplygitemail@protonmail.com>
2022-05-03 19:54:13 +02:00
Daniel Hofstetter
15412f100a
df: show "block-size argument too large" error
2022-05-03 09:26:57 +02:00
Sylvestre Ledru
9b69e6fd47
Merge branch 'main' into 2884-time-0.3
2022-05-02 18:14:14 +02:00
Terts Diepraam
0322d4633e
Merge pull request #3061 from hbina/hbina-printf-default-left-justify-legth
...
printf: Default left-justify integer conversion to 1 width
2022-05-02 17:50:10 +02:00
Sylvestre Ledru
fe7829d2f9
Merge pull request #3455 from mike-kfed/ptx_breakfile
...
ptx: implement breakfile option
2022-05-02 08:39:14 +02:00
Jeffrey Finkelstein
08816a4f05
fixup! mktemp: respect path given in template argument
2022-05-01 16:51:25 -04:00
Hanif Ariffin
2e60dce11a
printf: Default left-justify integer conversion to 1 width
...
When using left-justify with integer conversion (like `printf '%-o'`),
default the minimum width to 1.
Closes: https://github.com/uutils/coreutils/issues/3050
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
2022-05-01 20:00:09 +02:00
Jeffrey Finkelstein
aa6aefbd64
mktemp: respect path given in template argument
...
Fix a bug in `mktemp` where it was not respecting the path given by
the positional argument. Previously, it would place the temporary file
whose name is induced by a given template in the `/tmp` directory,
like this:
$ mktemp XXX
/tmp/LJr
$ mktemp d/XXX
/tmp/d/IhS
After this commit, it respects the directory given in the template
argument:
$ mktemp XXX
LJr
$ mktemp d/XXX
d/IhS
Fixes #3440 .
2022-05-01 13:03:18 -04:00
Sylvestre Ledru
9d81d6fef2
touch: add support of -d '1970-01-01 18:43:33.023456789'
2022-05-01 17:01:22 +02:00
Sylvestre Ledru
31c28eeaa9
fix gnu/tests/touch/60-seconds
2022-05-01 17:01:22 +02:00
Sylvestre Ledru
10eaaae272
time: take in account the local tz
2022-05-01 17:00:41 +02:00
Sylvestre Ledru
326dc5080d
stat: add a test to verify time easily
2022-05-01 17:00:41 +02:00
Sylvestre Ledru
3a576f2441
time: Various fixes
2022-05-01 17:00:35 +02:00
Sylvestre Ledru
ca670148f2
build(deps): bump time from 0.1.43 to 0.3.9
...
Bumps [time](https://github.com/time-rs/time ) from 0.1.43 to 0.3.9.
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.1.43...v0.3.9 )
---
updated-dependencies:
- dependency-name: time
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-01 16:58:47 +02:00
Sylvestre Ledru
f869fafd03
Merge pull request #3460 from tertsdiepraam/fix-dir-vdir-tests
...
`dir`, `vdir`: fix incorrect regex in tests
2022-05-01 16:15:25 +02:00
Terts Diepraam
95ba8c45b2
dir, vdir: fix incorrect regex in tests
2022-05-01 13:48:51 +02:00
Daniel Hofstetter
023fc96aab
df: fix "Size" column header
...
Fixes #3193
2022-04-30 07:33:00 +02:00
Michael Kefeder
994dedd6d9
tests/ptx: added breakfile option tests
2022-04-29 10:15:06 +02:00
Michael Kefeder
c6ad244142
tests/ptx: verify output width is handled correctly
2022-04-28 16:46:10 +02:00
Sylvestre Ledru
181ebd3996
Revert "df: remove trailing spaces in rightmost column"
2022-04-24 20:39:39 +02:00
Daniel Hofstetter
0f13de4e1a
df: allow sizes with a suffix for --block-size
...
Fixes #3416
2022-04-24 15:37:23 +02:00
Daniel Hofstetter
78dc90124e
df: simplify get_header() in test_block_size_1024
2022-04-23 16:56:06 +02:00
Sylvestre Ledru
5088ddc377
Merge pull request #3408 from cakebaker/ticket_3325
...
df: respect -t arg when specific file is provided
2022-04-23 09:24:08 +02:00
Sylvestre Ledru
48a521224e
Merge pull request #3396 from jtracey/android2
...
fix Android support
2022-04-22 16:06:12 +02:00
Daniel Hofstetter
2d4552cce4
df: respect -t arg when specific file is provided
...
Fixes #3325
2022-04-22 10:27:25 +02:00
Terts Diepraam
e8574ca184
Merge pull request #3418 from cakebaker/ticket_3409
...
df: show error if all types are excluded
2022-04-20 23:51:36 +02:00
Sylvestre Ledru
4ed3bbe705
Merge pull request #3423 from cakebaker/remove_trailing_spaces_in_rightmost_column
...
df: remove trailing spaces in rightmost column
2022-04-20 11:42:27 +02:00
Sylvestre Ledru
f6dafbc950
Merge pull request #3429 from cakebaker/ticket_3425
...
df: fix "File" column width for unicode filenames
2022-04-20 10:50:07 +02:00