Commit graph

3058 commits

Author SHA1 Message Date
Jian Zeng
b9916de804 Merge pull request #1025 from adeschamps/master
sort: Implement ignore-case
2017-01-23 03:41:16 -06:00
Erik Vesteraas
81996915df cat: fix for numbered lines w/ no trailing newline
Make at_line_start persist between printing each file. This fixes an
issue when numbering lines in the output and one of the input files
does not have a trailing newline.
2017-01-23 03:34:47 +01:00
Anthony Deschamps
6dc1eb54c0 sort: Implement ignore-case
Test included.
2017-01-21 13:30:22 -05:00
mpkh
4a16514d2c Merge pull request #1024 from DaanHoogland/master
create redox feature as subset of generic
2017-01-15 20:16:02 +04:00
Daan Hoogland
cd1f0690d7 create redox feature as subset of generic 2017-01-15 13:48:33 +01:00
Alex Lyon
e0bfbc3c23 Merge pull request #1020 from KeenS/ls-inode
ls: implement -i option
2017-01-10 00:34:35 -08:00
Sunrin SHIMURA (keen)
20b336ed3c remove redundant space 2017-01-10 10:37:34 +09:00
mpkh
a03b5279f3 Merge pull request #1022 from millerjs/cat-domain-sockets
add cat support for unix domain sockets
2017-01-09 08:27:24 +04:00
Joshua Miller
133934f7cf add cat support for unix domain sockets
- adds conditional supports for unix domain sockets
   - adds unix domain socket test
   - adds Results to functions, removing unwraps
   - uutils `cat` used to panic on broken stdout pipes (e.g. `cat
     /dev/zero | head -c1`).  this is fixed in this PR
   - updated to exit 0 on success, and 1 if an error occurs.
   - adds docstrings
   - adds an error log on printing a directory
   - adds categorization of other filetypes for extensible
     differentiation of behaviors
   - adds OutputOptions struct to replace params for extensibility
   - adds correct status code on exit
2017-01-08 19:56:35 -06:00
Sunrin SHIMURA (keen)
59e4bc431a ls: return String, not Option<String> 2016-12-26 12:27:06 +09:00
Sunrin SHIMURA (keen)
8a51ddf6fb ls: implement -i option 2016-12-25 14:39:29 +09:00
Jian Zeng
62d5a6bbc8 Merge pull request #1018 from Minoru/bugfix/1017-mkdir-p-with-existing-dir
mkdir: trying to create existing dir is fine
2016-12-23 10:34:02 -06:00
Alexander Batischev
67ac0c13b8 mkdir: trying to create existing dir is fine
Fixes #1017.

test_mkdir_dup_dir asserted that creating an existing directory is an
error, but that's not how GNU coreutils behaves. This has been reported
in #121, but wasn't fixed (only the `-p` case was).
2016-12-23 18:47:38 +03:00
Jian Zeng
65b46314a2 Merge pull request #1015 from Minoru/feature/846-tail-pid
tail: implement --pid
2016-12-22 07:24:45 -06:00
Alexander Batischev
f2166fed0a tail: implement --pid. Closes #846.
Kudos to zHz for helping out with Windows API part.
2016-12-22 01:32:09 +03:00
mpkh
b596df9a0a Merge pull request #1016 from uutils/fix-out-dir
tests: expand $OUT_DIR at compile time
2016-12-20 11:01:42 +04:00
knight42
fdbbb08aef tests: expand $OUT_DIR at compile time 2016-12-20 03:28:47 +08:00
Jian Zeng
2660bb4fc3 Merge pull request #1014 from Minoru/bugfix/umask-independent-test
tests/chmod: don't make assumptions about umask
2016-12-19 05:47:49 -06:00
Alexander Batischev
655804cff4 tests/chmod: protect umask with a mutex
`test_chmod_ugoa` and `test_chmod_many_options` both change umask, which
is global state. Since tests run concurrently, this might lead to
a situation where one of the tests changes umask to a value that screws
another test's checks. To prevent this, we introduce a mutex that should
be held by any test that changes umask.

Unfortunately, there's no way to hide umask behind this mutex and
enforce its usage: programmers will have to maintain the discipline
themselves.
2016-12-19 13:14:38 +03:00
Alexander Batischev
60f6f61ac9 tests/chmod: don't make assumptions about umask
`test_chmod_many_options` relied on user's umask not denying read access
for anyone. 022, which is the default umask for many, indeed allows read
access for everyone. I'm using 027, which disallows read for everyone
but owner and group. This made tests fail.

Now tests set and reset umask, ensuring checks are run in a reliable,
predictable environment.
2016-12-19 13:07:18 +03:00
Jian Zeng
797281936c Merge pull request #1010 from antiagainst/fuchsia
Enable compilation of more and ls on Fuchisa.
2016-12-18 21:41:13 -06:00
Lei Zhang
e57f987190 All generic utilities compilable on Fuchsia now. 2016-12-14 23:29:40 -05:00
Lei Zhang
c36917b35f Update dependencies.
libc v0.2.18 adds support for Fuchsia.
2016-12-14 23:29:40 -05:00
Lei Zhang
a34cd30f54 Enable compilation of ls on Fuchsia.
This updates the dependency of pretty-bytes to v0.2.
2016-12-14 23:29:38 -05:00
Lei Zhang
ba244794f0 Enable compilation of more on Fuchisa. 2016-12-08 13:08:17 -05:00
mpkh
fd7be06e5b Merge pull request #1011 from uutils/fix-build-error
Temporary fix for errors in testing
2016-12-08 10:38:07 +04:00
knight42
a0ff0f623a Temporary fix for errors in testing
The errors were caused by the missing env $OUT_DIR which should be set by
cargo.

[Related issue](https://github.com/rust-lang/cargo/issues/3368).
2016-12-08 12:36:07 +08:00
Alex Lyon
bb8e5b5824 Merge pull request #1008 from wimh/od-help
od: fix od --help
2016-12-04 20:02:29 -08:00
Wim Hueskes
829ea9f445 od: fix od --help 2016-12-04 22:24:36 +01:00
mpkh
a47d7d1a5b Merge pull request #1003 from Arcterus/fix-preserve-root
chgrp: fix more --preserve-root problems
2016-12-03 11:13:17 +04:00
Arcterus
5d9437bcaf chgrp: remove unwrap() in is_bind_root() 2016-12-01 06:02:58 -08:00
Alex Lyon
a6cda50ac8 Merge pull request #1005 from antiagainst/fuchsia
mktemp, nproc, ptx, and uniq compilable on Fuchsia now.
2016-11-30 11:45:20 -08:00
Lei Zhang
55470e17b5 cat no longer need extern crate libc anymore. 2016-11-30 10:57:47 -05:00
Lei Zhang
c2882da2e7 mktemp, nproc, ptx, and uniq compilable on Fuchsia now. 2016-11-30 10:50:47 -05:00
Arcterus
dc6ba887ba uucore: compile on Windows again 2016-11-30 03:51:49 -08:00
Arcterus
f5fce8dadb chgrp: detect bind mounted root 2016-11-30 03:50:07 -08:00
Arcterus
3ab82f9a66 uucore: read symlinked directories correctly in resolve_relative_path() 2016-11-30 03:50:07 -08:00
Alex Lyon
c403270ac3 Merge pull request #992 from kevgeniy/master
cat utility refactoring
2016-11-30 03:24:05 -08:00
Alex Lyon
04fcd823cc Merge pull request #1002 from antiagainst/itertools
Update dependencies and solve deprecated warnings.
2016-11-30 03:11:43 -08:00
Alex Lyon
7ec754ec1b Merge pull request #985 from knight42/fix-preserve-root
chgrp: fix bug in option --preserve-root
2016-11-30 02:59:19 -08:00
Lei Zhang
7d7fc68dee Solve compiler warning about using deprecated item.
PutBackN::new() is replaced by put_back_n.
2016-11-29 12:57:09 -05:00
Lei Zhang
3b06a6e292 Update dependencies. 2016-11-29 12:56:30 -05:00
Michael Gehring
268fe45f24 Merge pull request #1000 from antiagainst/fuchsia
Add a new feature to list all utilities that can compile for Fuchsia right now
2016-11-26 10:01:55 +01:00
Michael Gehring
7122f265b0 Merge pull request #997 from wimh/stat-travis
stat: fix test on travis
2016-11-26 09:40:05 +01:00
Michael Gehring
0a60911cdf Merge pull request #1001 from jbcrail/clippy-and-spelling
Fix clippy warnings and misspellings
2016-11-26 09:33:32 +01:00
Joseph Crail
45ebfdf35f Fix test 2016-11-25 14:58:42 -05:00
Joseph Crail
78d2e8db27 Fix comment spelling 2016-11-25 14:36:56 -05:00
Joseph Crail
b3680a5baf Fix clippy warnings 2016-11-25 14:14:46 -05:00
Lei Zhang
546f2855d5 Create a new feature for Fuchsia-enabled utilities. 2016-11-24 18:15:50 -05:00
Lei Zhang
59c12433e0 Add Fuchsia as recognized host OS in uname. 2016-11-24 17:30:03 -05:00