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