Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
af6bf3a
Begins work on dd
Mar 16, 2021
5271427
Merge branch 'master' of github.com:backwaterred/coreutils into imple…
Mar 16, 2021
28e6d0d
Develop prototype code
Mar 17, 2021
d6086fc
Adds impl & tests
Mar 18, 2021
0df4575
Implements conversions:- ascii, ebcdic, ibm, lcase, ucase- adds (simp…
backwaterred Mar 26, 2021
4996308
Builds out arg parsing. Adds support for if, of, & multiplier strings)
backwaterred Apr 3, 2021
5c8c7ef
Starts arg parsing. Cleans & refactors.
backwaterred Apr 7, 2021
9e933a3
Completes refactor & clean-up. Implements full conv flag parsing.
backwaterred Apr 9, 2021
7f7dd2a
Improves multiplier tests
backwaterred Apr 9, 2021
b461f10
Testt conv arg parsing.
backwaterred Apr 21, 2021
5aabdf8
Adds plumbing for conv=sparse. Not impl.
backwaterred Apr 22, 2021
beb7abc
Implements swab. Adds odd & even tests.
backwaterred Apr 22, 2021
3c3af72
Implements noerror (ignores read errors)
backwaterred Apr 22, 2021
4d7be2f
Implements functionality for seeking output files
backwaterred Apr 26, 2021
d97672d
Continues impl
backwaterred Apr 27, 2021
d0b4fe3
Refactor. Returns code to buildable
backwaterred May 27, 2021
f2fa1e1
Adds additional test resources & unit tests for block.
backwaterred May 29, 2021
48374ab
Imlements block. All tests passing.
backwaterred Jun 1, 2021
391a175
Fix regression in converison logic.
backwaterred Jun 1, 2021
ead3c8c
Project structure refactor.
backwaterred Jun 1, 2021
7bc151d
Project structure refactor (cont'd)
backwaterred Jun 1, 2021
787b969
Implements Unblock
backwaterred Jun 2, 2021
f7eaf96
Fixes bugs. Prepares for conv=sync
backwaterred Jun 4, 2021
841faeb
Impl conv=sync
backwaterred Jun 7, 2021
ef6c850
Adds additional conv=sync test for short reads.
backwaterred Jun 8, 2021
96fd665
Implements internal read/write buffer optimization
backwaterred Jun 8, 2021
a511db5
Minor optimization in calculation of lcm for internal r/w buffer.
backwaterred Jun 8, 2021
fc110bb
Implements status=LEVEL
backwaterred Jun 12, 2021
8141919
Implements count=N
backwaterred Jun 15, 2021
06dcdc0
Implements status=LEVEL parser.
backwaterred Jun 15, 2021
19996c1
Removes 'fast read' plumbing.
backwaterred Jun 16, 2021
d14b584
Implements libc file open flags (unix only)
backwaterred Jun 17, 2021
2226581
Cleans up compiler warnings.
backwaterred Jun 17, 2021
47464f5
Begin project level testing. Minor fixes.
backwaterred Jun 21, 2021
17cfba4
Implements project testfing from root.
backwaterred Jun 30, 2021
9228158
Merge branch 'master' of https://github.com/uutils/coreutils into uut…
backwaterred Jul 1, 2021
8334d9f
Build changes after merge with uutils main
backwaterred Jul 2, 2021
461fd10
Merge branch 'uutils-master'
backwaterred Jul 2, 2021
4d76cb4
Fixes odd build error in file I did not touch.
backwaterred Jul 2, 2021
951d9c0
Completes transition to clap
backwaterred Jul 2, 2021
9c38583
Merge pull request #2 from uutils/master
backwaterred Jul 2, 2021
5b030b4
Minor cleanup
backwaterred Jul 2, 2021
416488c
Edits README.
backwaterred Jul 2, 2021
7f03ecf
Adds failures & tests for unimplmented flags.
backwaterred Jul 2, 2021
8e862b8
More minor cleanup.
backwaterred Jul 2, 2021
860cbc6
Removes or ignores all compiler warnings
backwaterred Jul 2, 2021
418ecbe
Makes multiplier parsing system dependant
backwaterred Jul 5, 2021
0b981d9
Update src/uu/dd/src/datastructures.rs
backwaterred Jul 5, 2021
1ad89c5
Addresses issues raised in PR#2474
backwaterred Jul 6, 2021
09acfce
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Jul 6, 2021
d2cebad
addresses a few more issues from PR#2474
backwaterred Jul 6, 2021
96f9348
Merge branch 'uutils:master' into master
backwaterred Jul 6, 2021
74e0071
fixes conv=nocreat test failure
backwaterred Jul 7, 2021
2e9e984
Adds test with unicode filename
backwaterred Jul 7, 2021
4f7dda4
Completes final? issues barring PR
backwaterred Jul 8, 2021
fdfe2dc
Merge branch 'uutils:master' into master
backwaterred Jul 8, 2021
47806dd
build issues
backwaterred Jul 8, 2021
9aac61c
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Jul 8, 2021
8836385
Minor changes.
backwaterred Jul 12, 2021
994b4d9
Merge remote-tracking branch 'upstream/master'
backwaterred Jul 12, 2021
bb0d709
Commits changed Cargo.toml in dd
backwaterred Jul 12, 2021
94e0145
fixes more minor issues
backwaterred Jul 12, 2021
c3f9557
Adds dd to feat_common_core
backwaterred Jul 12, 2021
9d9267e
Addresses code-quality issues from testsdiepraam and miDeb.
backwaterred Jul 14, 2021
7c94bbe
Merge branch 'uutils:master' into master
backwaterred Jul 22, 2021
95d9f03
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Jul 22, 2021
989849e
Ignores linux-only tests on non-linux platforms.
backwaterred Jul 22, 2021
56c2f50
Addresses build errors
backwaterred Jul 22, 2021
885a875
Addresses build errors
backwaterred Jul 22, 2021
6184267
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Jul 22, 2021
076ff32
Removes project-specific cspell files.
backwaterred Jul 23, 2021
86245ec
Adds spell checker ignores to remaining project files.
backwaterred Jul 24, 2021
d1907ed
Adds additional words to exclude list. Improves documentation in dd.rs.
backwaterred Jul 24, 2021
2ab238a
Attempts to fix remaining checks.
backwaterred Jul 27, 2021
b3e7ff9
Merge branch 'uutils:master' into master
backwaterred Jul 27, 2021
0bbd4d4
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Jul 27, 2021
0cb5cff
Build blockers
backwaterred Jul 28, 2021
e780fba
fix a clippy warning
sylvestre Jul 31, 2021
e1fcc85
Merge branch 'master' of github.com:backwaterred/coreutils
backwaterred Aug 3, 2021
7ed7c84
Fix clippy warnings and build issues. Defer NL to seperate issue.
backwaterred Aug 4, 2021
601c9fc
Merge branch 'master' of https://github.com/uutils/coreutils into uut…
backwaterred Aug 4, 2021
67059db
Merge branch 'uutils-master-2'
backwaterred Aug 4, 2021
0864234
Removes unused macros from windows & macos builds
backwaterred Aug 4, 2021
2c41838
Merge branch 'uutils:master' into master
backwaterred Aug 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{ "name": "workspace", "path": "./cspell.dictionaries/workspace.wordlist.txt" }
],
// ignorePaths - a list of globs to specify which files are to be ignored
"ignorePaths": ["Cargo.lock", "target/**", "tests/**/fixtures/**"],
"ignorePaths": ["Cargo.lock", "target/**", "tests/**/fixtures/**", "src/uu/dd/test-resources/**"],
// ignoreWords - a list of words to be ignored (even if they are in the flagWords)
"ignoreWords": [],
// words - list of words to be always considered correct
Expand Down
27 changes: 27 additions & 0 deletions .vscode/cspell.dictionaries/jargon.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ colorizable
colorize
coprime
consts
conv
cyclomatic
dedup
deduplication
Expand All @@ -23,14 +24,18 @@ dev
devs
discoverability
duplicative
dsync
enqueue
errored
executable
executables
exponentiate
eval
falsey
fileio
flamegraph
fullblock
gibi
gibibytes
glob
globbing
Expand All @@ -39,8 +44,12 @@ hardlink
hardlinks
hasher
hashsums
infile
iflag
iflags
kibi
kibibytes
lcase
mebi
mebibytes
mergeable
Expand All @@ -49,8 +58,21 @@ microbenchmarks
microbenchmarking
multibyte
multicall
noatime
nocache
nocreat
noctty
noerror
nofollow
nolinks
nonblock
nonportable
nonprinting
notrunc
noxfer
ofile
oflag
oflags
peekable
performant
precompiled
Expand All @@ -70,22 +92,27 @@ semiprime
semiprimes
shortcode
shortcodes
siginfo
sigusr
subcommand
subexpression
submodule
sync
symlink
symlinks
syscall
syscalls
tokenize
toolchain
truthy
ucase
unbuffered
unescape
unintuitive
unprefixed
unportable
unsync
urand
whitespace
wordlist
wordlists
Expand Down
56 changes: 46 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ feat_common_core = [
"df",
"dircolors",
"dirname",
"dd",
"du",
"echo",
"env",
Expand Down Expand Up @@ -255,6 +256,7 @@ cp = { optional=true, version="0.0.7", package="uu_cp", path="src/uu/cp" }
csplit = { optional=true, version="0.0.7", package="uu_csplit", path="src/uu/csplit" }
cut = { optional=true, version="0.0.7", package="uu_cut", path="src/uu/cut" }
date = { optional=true, version="0.0.7", package="uu_date", path="src/uu/date" }
dd = { optional=true, version="0.0.7", package="uu_dd", path="src/uu/dd" }
df = { optional=true, version="0.0.7", package="uu_df", path="src/uu/df" }
dircolors= { optional=true, version="0.0.7", package="uu_dircolors", path="src/uu/dircolors" }
dirname = { optional=true, version="0.0.7", package="uu_dirname", path="src/uu/dirname" }
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,23 +366,23 @@ To contribute to uutils, please see [CONTRIBUTING](CONTRIBUTING.md).
| Done | Semi-Done | To Do |
|-----------|-----------|--------|
| arch | cp | chcon |
| base32 | date | dd |
| base64 | df | runcon |
| basename | expr | stty |
| cat | install | |
| chgrp | join | |
| chmod | ls | |
| chown | more | |
| chroot | numfmt | |
| cksum | od (`--strings` and 128-bit data types missing) | |
| comm | pr | |
| csplit | printf | |
| cut | sort | |
| dircolors | split | |
| dirname | tac | |
| du | tail | |
| echo | test | |
| env | | |
| base32 | date | runcon |
| base64 | dd | stty |
| basename | df | |
| cat | expr | |
| chgrp | install | |
| chmod | join | |
| chown | ls | |
| chroot | more | |
| cksum | numfmt | |
| comm | od (`--strings` and 128-bit data types missing) |
| csplit | pr | |
| cut | printf | |
| dircolors | sort | |
| dirname | split | |
| du | tac | |
| echo | tail | |
| env | test | |
| expand | | |
| factor | | |
| false | | |
Expand Down
31 changes: 31 additions & 0 deletions src/uu/dd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "uu_dd"
version = "0.0.7"
authors = ["uutils developers"]
license = "MIT"
description = "dd ~ (uutils) copy and convert files"

homepage = "https://github.com/uutils/coreutils"
repository = "https://github.com/uutils/coreutils/tree/master/src/uu/dd"
keywords = ["coreutils", "uutils", "cross-platform", "cli", "utility"]
categories = ["command-line-utilities"]
edition = "2018"

[lib]
path = "src/dd.rs"

[dependencies]
byte-unit = "4.0"
clap = { version = "2.33", features = [ "wrap_help" ] }
gcd = "2.0"
libc = "0.2"
signal-hook = "0.3.9"
uucore = { version=">=0.0.8", package="uucore", path="../../uucore" }
uucore_procs = { version=">=0.0.5", package="uucore_procs", path="../../uucore_procs" }

[dev-dependencies]
tempfile = "^3"

[[bin]]
name = "dd"
path = "src/main.rs"
Loading