dependabot[bot]
c66dd59489
Bump libc from 0.2.39 to 0.2.42
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.39 to 0.2.42.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.39...0.2.42 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-11 17:13:54 +00:00
Konstantin Pospelov
e9fd9d623d
join: implement option to suppress joined lines
2018-06-09 12:11:58 +03:00
Alex Lyon
2b063dd363
Merge pull request #1215 from uutils/dependabot/cargo/sha1-0.6.0
...
Bump sha1 from 0.2.0 to 0.6.0
2018-06-08 15:06:13 -07:00
dependabot[bot]
92727d3301
Bump sha1 from 0.2.0 to 0.6.0
...
Bumps [sha1](https://github.com/mitsuhiko/rust-sha1 ) from 0.2.0 to 0.6.0.
- [Release notes](https://github.com/mitsuhiko/rust-sha1/releases )
- [Commits](https://github.com/mitsuhiko/rust-sha1/compare/0.2.0...0.6.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-08 07:30:51 +00:00
dependabot[bot]
d1c18c01e9
Bump lazy_static from 1.0.0 to 1.0.1
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/commits/v1.0.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-08 07:30:48 +00:00
Alex Lyon
9b28029982
Merge pull request #1211 from uutils/dependabot/cargo/lazy_static-1.0.0
...
Bump lazy_static from 0.2.11 to 1.0.0
2018-06-07 09:08:24 -07:00
Alex Lyon
13aa3ede94
Merge pull request #1207 from uutils/dependabot/cargo/clippy-0.0.206
...
Bump clippy from 0.0.143 to 0.0.206
2018-06-07 08:45:23 -07:00
Alex Lyon
c814445c38
Merge pull request #1204 from uutils/dependabot/cargo/regex-syntax-0.5.0
...
Bump regex-syntax from 0.4.2 to 0.5.0
2018-06-07 08:44:07 -07:00
dependabot[bot]
c7fa56442a
Bump clippy from 0.0.143 to 0.0.206
...
Bumps [clippy](https://github.com/rust-lang-nursery/rust-clippy ) from 0.0.143 to 0.0.206.
- [Release notes](https://github.com/rust-lang-nursery/rust-clippy/releases )
- [Changelog](https://github.com/rust-lang-nursery/rust-clippy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang-nursery/rust-clippy/compare/v0.0.143...v0.0.206 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-07 15:41:42 +00:00
dependabot[bot]
5b5aaa03c9
Bump lazy_static from 0.2.11 to 1.0.0
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 0.2.11 to 1.0.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-07 07:25:48 +00:00
dependabot[bot]
d2aa1e30d2
Bump regex-syntax from 0.4.2 to 0.5.0
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/regex-syntax-0.4.2...regex-syntax-0.5.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-07 01:34:32 +00:00
dependabot[bot]
516ee396de
Bump clap from 2.31.1 to 2.31.2
...
Bumps [clap](https://github.com/kbknapp/clap-rs ) from 2.31.1 to 2.31.2.
- [Release notes](https://github.com/kbknapp/clap-rs/releases )
- [Changelog](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kbknapp/clap-rs/commits/v2.31.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-07 01:34:24 +00:00
Alex Lyon
f25d4e1114
uucore: update data_encoding and add wrap_write()
2018-05-22 09:55:05 -07:00
Alex Lyon
4d89c2d796
Merge pull request #1197 from c-edw/master
...
mkdir: Silently fail in recursive mode if unable to create directories.
2018-05-03 02:12:24 -07:00
Connor E
62632faa63
Clean up with changes from Arcterus.
2018-05-03 08:40:01 +01:00
Alex Lyon
974f5def20
uptime: error when uptime cannot be found
2018-05-02 19:11:37 -07:00
Alex Lyon
f91c84bc05
Merge pull request #1191 from ProgVal/chmod-human-friendly
...
chmod, ls, uucore: Make chmod display human-friendly permissions
2018-05-02 15:36:35 -07:00
Valentin Lorentz
43aafd2f1c
chmod: show human-friendly permissions when --changes or --verbose is used.
...
Like GNU chmod.
2018-05-02 23:23:05 +02:00
Alex Lyon
c50e7b5bc4
Merge pull request #1189 from ProgVal/unlink-nul-terminator
...
unlink: Add a nul-terminator after the file name before calling lstat.
2018-05-02 11:45:32 -07:00
Valentin Lorentz
f06972ccfd
unlink: Use a NUL-terminated string when calling unlink().
2018-05-02 19:13:36 +02:00
Alex Lyon
2eaabae507
Merge pull request #1192 from ProgVal/chmod-unimplemented
...
chmod: Remove '(unimplemented)' from the opt help.
2018-05-02 08:50:23 -07:00
Connor E
9d5631228a
mkdir: Use std create_dir_all for recursive operations.
2018-05-01 12:42:11 +01:00
Connor E
e03ab6b554
mkdir: Silently fail in recursive mode if unable to create directories.
2018-05-01 12:07:23 +01:00
Valentin Lorentz
4ba6f13c2b
chmod: Remove '(unimplemented)' from the opt help.
...
They are implemented now.
2018-04-22 21:38:30 +02:00
Alex Jiang
58b4075566
hostname: bug fix for non-windows xgethostname and add test case
...
Cstr::from_bytes_with_nul needs input bytes null terminated. Current
version does not include the last null byte, hence
Cstr::from_bytes_with_nul will panic with error 'FromBytesWithNulError {
kind: NotNulTerminated }'
2018-04-22 21:04:51 +08:00
Valentin Lorentz
dd0d23839a
unlink: Add a nul-terminator after the file name before calling lstat.
2018-04-22 10:32:43 +02:00
Alex Lyon
b50aaf6456
du: pick format for convert_size() once and reverse UNITS (again)
2018-04-20 03:56:47 -07:00
Alex Lyon
da301be35c
du: capitalize input block size (e.g. turn 'kB' into 'KB')
2018-04-20 01:26:29 -07:00
Alex Lyon
b619e363db
du: clean up block size parsing code
2018-04-20 00:54:49 -07:00
Alex Lyon
8498e33099
Merge pull request #1176 from bootandy/du_input_refactor3
...
du: read block size environment variables
2018-04-20 00:23:53 -07:00
Konstantin Pospelov
4b8d4bfc05
join: fix autoformat
...
There was an issue with autoformat when the files had a different
number of columns in the first line. This commit fixes the issue and
extends the related test to cover this case.
2018-04-15 17:42:52 +03:00
Konstantin Pospelov
cd98478ce9
join: minor improvements
...
Move the code to get the current key into a separate function.
Replace two 'combine' functions with one defined for Input.
2018-04-15 17:33:02 +03:00
Konstantin Pospelov
7dc8ff62cc
join: support headers
2018-04-11 22:55:44 +03:00
Michael Aaron Murphy
dddc773200
[ls] Add "-1" Flag & Fix Needless Vec
2018-04-10 22:13:21 -04:00
bootandy
f1497e43ce
du: read block size environment variables
...
blocksize env variables are read if -B is not specified as a command
line argument.
blocksize is now case insensitive (like gdu).
fn translate_to_pure_number() pulled out from existing code which
populated the block size variable
2018-04-06 21:30:59 +01:00
Alex Lyon
8db47690b2
Merge pull request #1171 from bootandy/du_h
...
du -h: support GB
2018-04-05 15:41:33 -07:00
bootandy
0840c20ef4
du: support G T P E on -h
...
Allow -h (human readable form) to show sizes larger than MB
(This mimics original du behaviour)
Code refactored to remove duplication
2018-04-03 06:58:38 -04:00
Alex Lyon
87d317e22f
Merge pull request #1169 from bootandy/du
...
Fix Du mac/inodes
2018-03-28 10:33:06 -07:00
bootandy
838ce7b3e3
Fix issues raised in review
...
spelling
use POSIXLY_CORRECT and BLOCKSIZE env variables to determine block size.
move statics to const
use show_error! not show_info!
2018-03-24 18:03:34 -04:00
Alex Lyon
948dbd324e
yes: choose between throughput and latency at compile-time
2018-03-22 04:22:34 -07:00
Alex Lyon
4941604362
yes: use 16 KiB rather than 8 KiB for the buffer
2018-03-22 03:31:41 -07:00
bootandy
b6c7771087
du: Fix double counting of hard links.
...
hard linked files are no longer counted - this mimcs the behaviour of
the original du.
2018-03-20 16:59:29 -04:00
bootandy
e253406026
du: Fix incorrect block size assumption.
...
du and other tools like stat assume a 512 byte block. ls is the only
tool to use 1024.
Add Simple set of tests
2018-03-20 16:59:29 -04:00
Ian Douglas Scott
fa867e93ea
Port 'tail' to Redox
2018-03-18 22:00:00 -07:00
Ian Douglas Scott
f76b23e3df
Port 'more' to Redox
2018-03-18 18:55:42 -07:00
Ian Douglas Scott
727d4843b8
Change static to const
2018-03-16 20:14:50 -07:00
Ian Douglas Scott
187006f0d3
test: handle symlinks in main match
2018-03-16 18:47:11 -07:00
Ian Douglas Scott
301b9002ce
Port test to Redox
2018-03-16 18:39:53 -07:00
Alex Lyon
3015a19230
Merge pull request #1157 from bootandy/master
...
Fix edge case for du on mac
2018-03-15 12:26:42 -07:00
bootandy
8f67c8fef2
du: refactor to use ? shortcut
2018-03-15 14:58:21 -04:00
Ian Douglas Scott
6f4b91db93
Build hashsum, join, ln, ls, mkdir, mktemp, nl, ptx, sort on Redox
2018-03-14 22:10:28 -07:00
bootandy
be79a70572
Refactor Stat::new to return Result
...
This was to remove the double call to fs::symlink_metadata
2018-03-14 16:26:22 -04:00
Ian Douglas Scott
1471e95b22
Make the 'cat' utility build on Redox
2018-03-14 10:21:12 -07:00
bootandy
f0e25e5537
Fix edgecase for du on mac
...
When du encounters a file that cannot be read it logs an error and
continues to analysise the rest of the directory. This behaviour brings
it inline with the original du.
2018-03-13 16:05:34 -04:00
Alex Lyon
f359507b58
yes: match the speed of GNU yes (on my machine) and remove allocs
2018-03-12 21:14:52 -07:00
Alex Lyon
bd557c87fb
uucore: make features opt-in rather than opt-out
2018-03-12 20:21:38 -07:00
Alex Lyon
7b1554cc2c
whoami: switch to clap
2018-03-12 19:28:32 -07:00
Alex Lyon
155fea53b2
yes: switch to clap and try to decrease allocs
2018-03-12 16:27:21 -07:00
Alex Lyon
880a4973c1
Format everything using rustfmt
2018-03-12 01:20:58 -07:00
Alex Lyon
00a8b0b0f1
uucore: remove utsname.rs (and replace with platform-info)
2018-03-11 18:50:36 -07:00
Alex Lyon
0b70b151b8
hostname: refactor a bit
2018-03-07 03:34:04 -08:00
Alex Lyon
6330474b4f
hostname: add support for Windows (and maybe other systems too)
2018-03-06 16:40:08 -08:00
Alex Lyon
15aaa8215e
uucore: read from sys:uname on Redox
2018-03-05 17:31:33 -08:00
Alex Lyon
8ba5fae6e3
cp, tail: update winapi
2018-03-04 18:38:33 -08:00
Alex Lyon
2d798bd601
expr, sync, whoami: update Oniguruma and winapi
2018-03-04 18:07:38 -08:00
Alex Lyon
5d241da7ca
arch: add support for building on Windows
2018-03-04 17:58:16 -08:00
Alex Lyon
d8e738c49b
tests: disable some chgrp tests when part of the root group
...
Some tests failed when run using Docker because they assumed the
user would never be root. This is more of a band-aid solution.
An actual fix would be to test see if something like these tests
were to succeed when the user is root.
2018-03-03 12:04:22 -08:00
Alex Lyon
8ece01d0ef
who: fix heading in containers
2018-03-01 22:20:23 -08:00
Konstantin Pospelov
642633fe3b
join: check line order
2018-02-11 18:23:12 +03:00
king6cong
e3fedddd17
remove nightly complier warnings
2018-02-09 19:49:57 +08:00
mpkh
37f3e3a151
Merge pull request #1137 from Arcterus/realpath-relpath-fix
...
realpath, relpath: fix on stable and beta (whoops)
2018-01-18 10:36:41 +04:00
Alex Lyon
91b7ae44d6
realpath, relpath: fix on stable and beta (whoops)
2018-01-17 15:35:42 -08:00
Konstantin Pospelov
186cb8853f
join: fix code formatting
2018-01-17 23:26:00 +03:00
Konstantin Pospelov
128a38965e
join: support custom empty filler
2018-01-17 23:26:00 +03:00
mpkh
2db220e820
Merge pull request #1136 from Arcterus/realpath-relpath-fix
...
Fix build on nightly
2018-01-17 12:12:02 +04:00
James McCoy
c82e94cae5
stat: Remove hard-coded path for mount information
2018-01-16 20:48:03 -05:00
James McCoy
81eef5dabf
stat: Avoid parsing mount info when showing filesystem info
2018-01-16 20:47:52 -05:00
Alex Lyon
e9f32fe170
realpath, relpath, tests: fix build on nightly
2018-01-16 15:11:46 -08:00
Bulat Musin
cc66229f16
add #[allow(unused_imports)] to std::ascii::AsciiExt
...
explicit import of std::ascii::AsciiExt is deprecated since 1.23
2018-01-08 11:32:38 +03:00
Konstantin Pospelov
12c5c951fb
join: implement the -o option
2018-01-06 22:49:07 +03:00
Alex Lyon
49cf7c2a5b
Merge pull request #1127 from bltnkl/echo_refine
...
Slight improvements to echo
2018-01-06 10:38:46 -08:00
Bulat Musin
ec543508bc
echo: refactor slightly
2018-01-06 17:05:04 +03:00
Bulat Musin
26ad240572
echo: reorder of match patterns
...
People write \n \t and \r \v much more
often than other escape sequences, so
it makes more sense to optimise for common
case, as match scans from top to bottom.
2018-01-06 17:01:50 +03:00
Bulat Musin
7ebda2de44
echo: rewrite two functions as closures
2018-01-06 17:01:24 +03:00
Bulat Musin
6afddc4d6a
tail: squashed two commits
...
commit ceaeb5ec2a284555e6c061070c74b050efb129f0
Author: Bulat Musin <bulatmusin@outlook.com>
Date: Thu Jan 4 11:01:29 2018 +0300
tail: fix typo
commit 50e3568e460c7ec9786835c9795d1496a2463901
Author: Bulat Musin <bulatmusin@outlook.com>
Date: Thu Jan 4 10:54:17 2018 +0300
collapse similar changes into one commit
commit a54df8d92d534b801b364c2e74635dfe282441d8
Author: Bulat Musin <bulatmusin@outlook.com>
Date: Wed Jan 3 21:05:33 2018 +0300
tail: add --silent option
commit 5c9aec7e5bb5ff79f1421e5b33bf82809795bc64
Author: Bulat Musin <bulatmusin@outlook.com>
Date: Wed Jan 3 20:43:36 2018 +0300
tail: add spaces after hashes
2018-01-06 16:49:23 +03:00
Alex Lyon
3eee1b9ad6
Merge pull request #1074 from Heather/pwd_lp
...
pwd: add support for -L and -P options
2017-12-30 23:53:01 -08:00
Alex Lyon
ffc3c1d262
Merge pull request #1087 from ProgVal/faster-yes
...
Make 'yes' 1000 times faster.
2017-12-30 23:40:20 -08:00
Alex Lyon
cf7582cbd2
stdbuf: make build more reliable and allow installation using Cargo
2017-12-29 23:25:51 -08:00
Alex Lyon
feaae12d0a
cp: lock winapi to 0.2 for now
2017-12-29 03:31:13 -08:00
Alex Lyon
4deef05880
stdbuf: fix build warning
2017-12-28 22:12:44 -08:00
Alex Lyon
8ed383941d
Add Sphinx documentation to generate man pages
2017-12-28 22:02:58 -08:00
Alex Lyon
6d61b6805d
Merge pull request #1113 from tsliang/master
...
uname: change sysname flag to kernel-name
2017-12-27 03:23:40 -08:00
Tai Sassen-Liang
e79f5277ed
uname: add missing paren
2017-12-27 11:57:06 +01:00
Tai Sassen-Liang
5d4e404765
uname: convert to clap; support obsolete option aliases
2017-12-27 11:29:06 +01:00
Alex Lyon
bc6d748a9e
Merge pull request #1119 from KeenS/install-ignore--c
...
install: ignore -c option for compatibility
2017-12-27 02:29:04 -08:00
Tai Sassen-Liang
c210d8d8c9
uname: change sysname flag to kernel-name
...
The --sysname flag in GNU uname was deprecated in 2002 and replaced by --kernel-name.
2017-12-27 11:24:29 +01:00
Sunrin SHIMURA (keen)
956a6aa1fb
install: ignore -c option for compatibility
2017-12-27 17:52:53 +09:00
Sunrin SHIMURA (keen)
ee34206520
install: allow to install a file to a file
2017-12-27 17:31:19 +09:00
Alex Lyon
a1cf262414
rm: exit normally when -f is used with no operand
2017-12-26 15:36:21 -08:00
Konstantin Pospelov
4e0a0cf7bb
join: implement the -t option
2017-12-24 16:22:48 +03:00
Konstantin Pospelov
743a5b68ed
join: simplify closure for line parsing
2017-12-18 10:40:15 +03:00
Konstantin Pospelov
2a6d550f4b
join: switch to clap
2017-12-17 16:36:46 +03:00
Konstantin Pospelov
d28e09de04
join: do not wrap stdin in BufReader
2017-12-16 19:26:25 +03:00
Konstantin Pospelov
3aa63ad9dd
join: minor review points
2017-12-16 16:11:39 +03:00
Konstantin Pospelov
a04a77a477
join: switch to auto-generated main.rs
2017-12-16 16:09:46 +03:00
Konstantin Pospelov
b33ce67d91
join: implement basic functionality
...
The basic implementation of join with some tests. The supported
options: -1, -2, -j, -a, -i.
2017-12-14 00:02:42 +03:00
Cynede
908eaf610e
pwd: drop unused import
2017-12-11 14:50:56 +04:00
Cynede
6ef16b9221
pwd: fixes for UNC paths on Windows, match instead of plain unwrap
2017-12-11 14:49:20 +04:00
Mikhail Pukhlikov
f8e24439c9
pwd: add support for -L and -P options
2017-12-11 14:11:42 +04:00
Alex Lyon
26d6742c11
mknod, stdbuf: fix build
2017-12-11 00:27:38 -08:00
Alex Lyon
2e7f969404
chmod, install, uucore: fix build on Windows
2017-12-10 21:21:24 -08:00
Alex Lyon
479aeed9f6
mknod: use mode parsing in uucore
2017-12-10 21:10:26 -08:00
Alex Lyon
7aea948473
Remove pipe_* macros
2017-12-10 20:57:39 -08:00
Alex Lyon
6829ca3d10
chmod, install: move mode parsing into uucore
2017-12-10 20:11:05 -08:00
Alex Lyon
e2e77f8c70
du: only use snake case
2017-12-10 10:03:14 -08:00
Alex Lyon
2efd2b38be
du: remove inefficient multi-threading
2017-12-10 09:52:22 -08:00
Alex Lyon
9316fb4603
Merge pull request #1095 from ids1024/travis-redox2
...
Add cross build targeting Redox to Travis CI
2017-12-09 19:12:06 -08:00
Ian Douglas Scott
75141f0382
Fix cp build on Redox
2017-12-08 21:04:02 -08:00
Alex Lyon
2b4a685286
stdbuf: stop using GNU make as part of the build process
2017-12-08 18:50:18 -08:00
Alex Lyon
75f11e9635
Handle SIGPIPE correctly and autogenerate main() for each util
2017-12-08 15:05:07 -08:00
Alex Lyon
ecdafd830f
stdbuf: fix install on Macs
2017-11-18 21:54:01 -08:00
Alex Lyon
4ef2ef29cd
Fix broken tests due to updating Cargo.lock
2017-11-18 17:52:28 -08:00
Alex Lyon
8c846e2aa9
stdbuf: build shared library on Macs
2017-11-18 17:37:37 -08:00
Alex Lyon
de07c6218b
stdbuf: build the shared library again and fix the Makefile
2017-11-18 17:37:32 -08:00
Alex Lyon
4e034b02bd
Merge pull request #1076 from emielbeinema/remove-rust-crypto
...
Replace rust-crypto
2017-11-18 15:06:39 -08:00
Emiel Beinema
1e7ebcb9e1
hashsum: use macro for Digest implementation
2017-11-18 13:06:11 +01:00
Emiel Beinema
5d0c8895d9
hashsum: replace rustc_serialize with hex crate
2017-11-18 13:06:11 +01:00
Emiel Beinema
ff1ef82d84
hashsum: clean up and lock new dependencies
2017-11-18 13:06:11 +01:00
Emiel Beinema
b425d03a6b
hashsum: replace rust-crypto crate
2017-11-18 13:06:07 +01:00
Emiel Beinema
0944f7bf6d
hashsum: introduct local Digest trait
2017-11-18 13:05:59 +01:00
Alex Lyon
fc0e4cb98b
Merge pull request #1090 from shutefan/chmod-cleanup
...
chmod: avoid passing all args through function hierarchy
2017-11-15 13:12:12 -08:00
Alex Lyon
f7b97dc3d4
Merge pull request #1089 from flyrry/fix_env
...
fix --help and --version
2017-11-15 13:06:31 -08:00
Nathan Ross
517a263e25
Merge pull request #1088 from flyrry/cleanup_help
...
make cp print usage correctly
2017-11-14 17:55:31 -05:00
Nathan Ross
4f3a1772cb
Merge pull request #1091 from ykrivopalov/numfmt
...
Add numfmt
2017-11-14 17:54:00 -05:00
Gerald E Butler
0268cf75cd
Added a check to see if the input file/path that ls is run on when using -l or other long options, that if the path part ends with '/' then it does not show it as a soft-link if it is a soft-link but, instead shows the directory contents of the directory the soft-link points to - see https://github.com/uutils/coreutils/issues/1093
2017-11-13 21:34:40 -05:00
Yury Krivopalov
b2ad51839b
Add numfmt
2017-11-09 00:23:24 +03:00
shutefan
26b52f7604
chmod: avoid passing all args through function hierarchy
2017-11-01 18:15:54 +01:00
Sergei Mironenko
f0aa68aa1e
fix --help and --version
2017-10-28 17:42:40 +03:00
Sergei Mironenko
d8c75e5ae4
make cp print custom usage only once
2017-10-25 19:40:02 +03:00
Valentin Lorentz
fe87116431
Make 'yes' 1000 times faster.
2017-10-21 21:23:06 +02:00
Alex Lyon
f2b952db54
Merge pull request #1082 from flyrry/finish_basename
...
basename: add -a, -s and -z flags
2017-10-09 11:33:06 -07:00
Sergei Mironenko
0b5a2c8743
basename: add -a, -s and -z flags
2017-10-09 11:02:12 +03:00
Alex Lyon
8ed510d49a
Merge pull request #1080 from shutefan/add-truncate-to-tr
...
tr: add truncate flag
2017-10-07 15:55:51 -07:00
Alex Lyon
42be38f98f
Merge pull request #1078 from shutefan/fix-warnings-in-cp
...
cp: fix compiler warnings
2017-10-07 15:52:26 -07:00
shutefan
4a96b56d60
cp: keep --preserve related code but ignore "unused" warnings
2017-10-06 21:54:00 +02:00
shutefan
ddbfafa684
tr: add truncate flag
2017-10-06 01:09:17 +02:00
shutefan
14160cab86
mv: split up uumain
2017-10-06 01:09:06 +02:00
shutefan
e1d41b84f3
travis: fix compiler warnings for 1.22
2017-10-06 00:49:43 +02:00
Alex Lyon
618531b366
Merge pull request #1079 from shutefan/add-quiet-flag-to-tail
...
tail: suppress headers when --quiet flag is used
2017-10-05 14:43:12 -07:00
shutefan
bf2a591b0a
tail: suppress headers when --quiet flag is used
2017-10-05 21:25:21 +02:00
shutefan
82d6d24a97
cp: cast st_ino and st_nlink to u64
2017-10-05 20:34:08 +02:00
shutefan
83d25c0c70
cp: cast nNumberOfLinks to u64
2017-10-04 23:17:11 +02:00
shutefan
c20ce9bf74
cp: fix compiler warnings
...
Fixes seven compiler warnings in cp.rs:
- unused imports: `c_char`, `c_int`
-> removed
- value assigned to `inode` is never read
-> no more default value, immutable
- value assigned to `nlinks` is never read
-> no more default value, immutable
- unused variable: `src_path`
-> removed
- unused `std::result::Result` which must be used
-> only in error on unsupported platforms (Windows) which is
already handled with #[cfg(unix)]
- variable `preserve_context` is assigned to, but never used
-> removed
- value assigned to `preserve_context` is never read
-> see above, remove
2017-10-04 21:43:06 +02:00
Ian Douglas Scott
1a28a48ca3
Merge branch 'master' into expr-regex
2017-10-01 10:09:06 -07:00
Alex Lyon
ab259194f3
Merge pull request #1066 from Matt8898/master
...
cp: add support for --attributes-only and setting timestamps, links and xattrs
2017-10-01 01:43:09 -07:00
Yury Krivopalov
ac375d8b7d
tr: add squeeze option
2017-09-21 22:15:05 +03:00
Yury Krivopalov
b4d8265a07
tr: generaze translation
2017-09-21 22:15:01 +03:00
Yury Krivopalov
c59e375c7a
tr: use as_bytes on whole output string
...
On my environment on 1MiB file with this fix tr takes 30ms,
instead of 44ms without fix.
2017-09-21 22:14:56 +03:00
Matt8898
e33de238ca
cp: add support for --preserve=all.
2017-09-13 16:21:33 +02:00
Matteo Semenzato
6476f6e616
cp: add support for preserving links on windows.
2017-08-23 15:20:23 +02:00
Matt8898
f7072b7dfe
cp: add support for preserving links on unix.
2017-08-19 13:43:37 +02:00
Matt8898
4cb727f80b
cp: Add support for preserving xattrs.
2017-08-19 13:42:44 +02:00
Matt8898
6d3e9eabe4
cp: add support for --preserve.
2017-08-19 13:42:44 +02:00
Matt8898
38dd8c5836
cp: use filetime to set timestamps.
2017-08-19 13:42:44 +02:00
Matt8898
03432db951
Added support for preserving timestamps.
2017-08-19 13:42:44 +02:00
Matt8898
48ae9b64ba
cp: add support for --attributes-only.
2017-08-19 13:42:44 +02:00
Ian Douglas Scott
2853905ebc
install: Fix verbose mode
...
- Do not mark as unimplemented
- Use ascii quotes
- Print newline
2017-08-14 13:16:50 -07:00
Ian Douglas Scott
79d5d14d11
Make install work on Redox, by using fs::set_permissions
...
This is the same change I made earlier to chmod
2017-08-12 15:20:50 -07:00
Ian Douglas Scott
de4bee2321
mktemp fix for Redox
2017-08-12 15:17:37 -07:00
Ian Douglas Scott
13d97ee1cc
Correct behavior of cp -r with non-existent dest
2017-08-09 15:35:13 -07:00
Alex Lyon
c827795d17
Merge pull request #1056 from Matt8898/master
...
cp: add support for --reflink.
2017-07-28 23:34:47 -07:00
Matt8898
a73c74ecbc
cp: add support for --reflink.
2017-07-28 10:42:21 +02:00
mpkh
61b15f5c1c
Merge pull request #1061 from Arcterus/ls-fix
...
ls: fix line that was forgotten in #1057
2017-07-27 11:40:08 +04:00
mpkh
678cb5f81a
Merge pull request #1060 from Arcterus/rm-refactor
...
rm: massive refactor
2017-07-27 11:29:04 +04:00
Alex Lyon
86aa1eb47a
ls: fix line that was forgotten in #1057
2017-07-27 00:09:42 -07:00
Alex Lyon
b39689ac37
rm: massive refactor
2017-07-26 23:21:23 -07:00
Alex Lyon
4a5b76f678
Merge pull request #1057 from ids1024/ls
...
Fix ordering of ls -t, which was backwards
2017-07-26 21:18:00 -07:00
Ian Douglas Scott
3c3f5ab2a3
Fix ordering of ls -t, which was backwards
2017-07-26 20:57:44 -07:00
Ian Douglas Scott
b9446c0766
Make ls build on Redox
2017-07-25 16:26:36 -07:00
Ian Douglas Scott
99af79a7fa
Cast umask result, and comment about Redox
2017-07-23 17:28:16 -07:00
Ian Douglas Scott
d8494974bc
Make chmod use std where possible instead of libc; compile for Redox
2017-07-22 20:46:15 -07:00
Matt8898
32bd2843d5
cp: add support for --update
2017-07-22 12:03:26 +02:00
Joshua Miller
7dafb649d5
implement many copy flags
...
- Refactored towards extensibility
2017-07-16 19:20:07 -05:00
Joshua Miller
e8073d2596
pin dependencies
2017-07-15 15:16:09 -05:00
Alex Lyon
7ef27acb05
Merge pull request #1046 from Matt8898/cp
...
cp: Add -r flag
2017-07-02 14:12:08 -07:00
Alex Lyon
0c3a816148
expr: update onig to compile on Windows
2017-06-29 21:25:40 -07:00
Alex Lyon
7cfe0465ee
Update for changes in regex
2017-06-29 20:59:20 -07:00
Arcterus
9abc3208d3
expr: implement regular expressions
2017-06-29 20:58:16 -07:00
Alex Lyon
eb75085595
Merge pull request #1035 from shinh/ln
...
ln: Fix how it selects the form
2017-06-29 20:33:33 -07:00
mpkh
ee9013215b
Merge pull request #1044 from Shnatsel/fnv-hash-map
...
tr: use FnvHashMap instead of default HashMap backed by SipHasher
2017-06-02 13:56:13 +00:00
Matt8898
f4ea1a9cc5
cp: added -r/--recursive flag
2017-06-02 13:19:33 +02:00
Hiroki Noda
a30d732463
nproc: fix conditional compilation
2017-05-29 12:08:47 +09:00
Hiroki Noda
5e95d3752e
nproc: fix comment position
2017-05-29 11:36:26 +09:00
Hiroki Noda
57dd3703d0
nproc: fix compilation on windows
2017-05-29 10:06:45 +09:00
Hiroki Noda
adb39d411b
nproc: fix windows
2017-05-29 09:41:29 +09:00
Hiroki Noda
3a4b5ff8ed
nproc: counts CPU cores via affinity mask if available on Linux
...
* Upgrade num_cpus crate to 1.5.0.
* Use sysconf(_SC_NPROCESSORS_CONF) when `--all` query given.
2017-05-29 08:56:33 +09:00
Sergey "Shnatsel" Davidoff
44cf7798bd
tr: use FnvHashMap instead of default HashMap backed by SipHasher. FnvHashMap is much faster for small inputs like intergers, and we literally have a hashmap with chars as keys
2017-05-26 18:49:39 +03:00
Sergey "Shnatsel" Davidoff
c47ce19620
tr: use streaming instead of buffering the entire input and output
2017-05-24 17:58:04 +03:00
Matt8898
2a045fae37
uucore: add support for optflagmulti and optmulti.
2017-04-22 21:36:01 +02:00
theGeekPirate
589847aa2f
Ensure "Linux" not targeted instead of "Linu" =D
...
#[cfg(not(target_os = "linux"))] spelling mistake
2017-04-19 00:18:29 -07:00
Shinichiro Hamaji
d556c9e398
ln: Fix how it selects the form
...
ln had a bunch of problems:
1. `ln -s target` didn't work (2nd form in help).
2. `ln -t tmp` wasn't an error. We should check if files are
empty first.
3. `ln -s file dir` didn't create dir/file.
4. `ln -s -T file dir` was removing `dir`.
5. Test cases for 4 say this is for compatibility with GNU
coreutils but I couldn't find this feature.
2017-04-09 02:32:57 +09:00
Shinichiro Hamaji
416c2b7f89
rm: Remove invalid symlinks
...
Checking with file.exists() was not good for this purpose as
Path::exists() returns false for invalid symlinks.
2017-04-09 01:33:07 +09:00
Alex Lyon
5f1cb07df8
Merge pull request #1033 from shinh/rm-dir-link
...
rm: Remove symlinks to directories without -r
2017-04-03 08:35:37 -07:00
Shinichiro Hamaji
bb1d8956eb
rm: Fail when symlink_metadata() fails
2017-04-04 00:10:45 +09:00
Alex Lyon
a2de3997b9
Merge pull request #1031 from shinh/mkdir-dup
...
mkdir: Fix the behavior for existing files
2017-04-02 20:50:22 -07:00
Alex Lyon
df960d211c
Merge pull request #1034 from shinh/ls-n
...
ls: Implement -n option
2017-04-02 20:46:13 -07:00
Shinichiro Hamaji
36d26c0f0d
ls: Implement -n option
2017-04-02 13:11:48 +09:00
mpkh
a304d9e97e
Merge pull request #1032 from shinh/ln-basename
...
ln: Use basename when target directory is specfied
2017-04-01 22:11:33 +04:00
Shinichiro Hamaji
4f6841df32
rm: Remove symlinks to directories without -r
...
Path::is_dir follows symlinks so it returns true for symlinks
to directories. Use symlink_metadata instead so you can remove
symlinks to directories without -r flag.
2017-04-01 23:45:34 +09:00
Shinichiro Hamaji
fc235e360e
mkdir: Fix the behavior for existing files
...
Currently, mkdir always succeeds for existing files and it
even modifies their mode. With this change, only mkdir -p for
existing directories will be allowed.
2017-04-01 23:43:13 +09:00
Shinichiro Hamaji
47acbb0e82
ln: Use basename when target directory is specfied
...
The following should work, but without this patch, it tries
to create the link as x/y and it fails with EEXIST.
$ mkdir -p x/y
$ ln -s -t . x/y
2017-04-01 23:22:14 +09:00
Shinichiro Hamaji
e4ad79f46e
ls: Implement -B option
2017-04-01 19:47:52 +09:00
Anthony Deschamps
41d1dfaf44
Partial implemantion of date.
2017-03-26 23:43:29 -04:00
Jian Zeng
daba29b832
Merge pull request #1026 from evestera/cat-numlines-notrailing
...
cat: fix for numbered lines w/ no trailing newline
2017-01-23 06:39:31 -06:00
Erik Vesteraas
21d9152cfe
cat: Collect output state into a struct
2017-01-23 11:07:47 +01: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
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
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
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
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
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
Wim Hueskes
829ea9f445
od: fix od --help
2016-12-04 22:24:36 +01:00
Arcterus
5d9437bcaf
chgrp: remove unwrap() in is_bind_root()
2016-12-01 06:02:58 -08: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
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
Joseph Crail
78d2e8db27
Fix comment spelling
2016-11-25 14:36:56 -05:00
Lei Zhang
59c12433e0
Add Fuchsia as recognized host OS in uname.
2016-11-24 17:30:03 -05:00
Lei Zhang
e37468b630
Turn off utmpx and signals for Fuchsia.
...
Fuchsia uses musl as its libc; musl only has stub implementation
for utmpx. From their wiki, that is deliberately chosen.
Fuchsia doesn't have signals mechanism.
2016-11-24 17:15:43 -05:00
Lei Zhang
a2071c258e
Remove unnecessary dependencies on libc in various utilities.
2016-11-24 11:17:36 -05:00
mpkh
de8d96ff7c
Merge pull request #994 from Will-W/windowsfixes
...
Windowsfixes
2016-11-19 16:34:31 +04:00
kevgeniy
6d13bcf2da
cat: fixed indentation
2016-11-18 22:30:12 +03:00
Will Wykeham
0809dce4a2
Fix a number of Windows build warnings
2016-11-18 13:58:36 +00:00
Will Wykeham
d55e2ee80a
Fix mv build on Windows
2016-11-18 13:58:13 +00:00
Lei Zhang
aaa7274b63
Remove unnecessary dependencies of getopts & libc for utilities.
2016-11-17 17:43:31 -05:00
Alex Lyon
4f5e8f4566
Merge pull request #965 from wimh/od
...
od: implement remaining functionality
2016-11-10 15:13:10 -08:00
Wim Hueskes
2550e0f3c7
od: several small changes after review
...
* update status in README.md
* enable busybox tests
Adding `CONFIG_DESKTOP` and `CONFIG_LONG_OPTS` to busybox config.
These flags also enable other tests, but those utilities are not
included in `TEST_PROGS`. (eg. awk)
* fix whitespace and small issues
* fix Eq imp for FormatWriter on nightly + beta
* fix indention in multifilereader.rs
* fix intermittent errors in tests
2016-11-09 20:26:55 +01:00
Zephiris
0d0087053f
ls: Fix '-aR' recursion.
...
ls with -aR was recursing infinitely becacuse it
added ./.. to every node. I don't see a way to
avoid this except by cloning when that option
is used.
2016-11-05 01:29:55 -07:00
Zephiris
606c1badd2
ls: Change symlink behavior to be more POSIX compliant.
...
Symlink directories are read by default, and symlink targets are listed on
Windows.
2016-11-05 00:22:55 -07:00
Zephiris
ca8f5516e9
ln: Make sure we can symlink directories on Windows.
2016-11-05 00:22:55 -07:00