Hanif Bin Ariffin
840c6e7b91
tr
: Reimplementing set expansion
...
Hopefully will be feature parity with GNU `tr`.
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Implemented a bit of new expansion module
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Implemented delete operation
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Partially implemented delete operation
Will go through translate next.
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Fix formatting...
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Implemented translation feature
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2021-08-14 19:36:30 +08:00
Sylvestre Ledru
52c6593ef5
Merge pull request #2486 from hbina/hbina-tr-return-err-when-extra-args
...
`tr` should error out when if user provides more than 2 sets
2021-07-10 20:51:27 +02:00
Jan Scheer
30b80d0c82
tr: fix squeeze and complement with two sets ( #2485 )
2021-07-09 23:05:00 +02:00
Hanif Bin Ariffin
c4c6819dae
Reimplemented simply using args
...
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2021-07-09 23:51:37 +08:00
Roy Ivy III
3f35e0a421
refactor ~ cargo make format
2021-05-31 08:23:58 -05:00
Roy Ivy III
4e20dedf58
tests ~ refactor/polish spelling (comments, names, and exceptions)
2021-05-31 08:23:57 -05:00
Jan Scheer
3fcac152f8
tr: add test
2021-05-02 18:35:52 +02:00
Jan Scheer
8739139a7f
Merge branch 'master' into issue2147
2021-05-02 12:35:19 +02:00
Jan Scheer
34c22dc3ad
tr: fix complement if set2 is range
2021-05-02 12:15:16 +02:00
Sylvestre Ledru
7e07438b38
Merge pull request #2151 from jfinkels/2141-translate-and-squeeze
...
tr: implement translate and squeeze (-s) mode
2021-05-01 23:27:43 +02:00
Jan Scheer
83eb704415
Merge branch 'master' into issue2147
2021-05-01 18:52:35 +02:00
Jan Scheer
117e84eed3
tr: implement complement separately from delete or squeeze ( #2147 )
2021-05-01 18:46:13 +02:00
Jeffrey Finkelstein
0f3bc23739
tr: implement translate and squeeze (-s) mode
...
Add translate and squeeze mode to the `tr` program. For example:
$ printf xx | tr -s x y
y
Fixes #2141 .
2021-04-30 18:17:05 -04:00
Jan Scheer
45dd9d4e96
tr/dirname: fix clap short_alias
2021-04-30 20:19:43 +02:00
Jan Scheer
646c6cacbc
refactor tests ( #1982 )
2021-04-23 02:28:46 +02:00
Daniel Rocco
fbb9c50050
tr: process octal escape sequences
...
closes #1817
2021-03-17 08:04:45 -04:00
Roy Ivy III
02e4226c26
refactor/polish ~ cargo make format
2020-10-02 16:03:21 -05:00
Roy Ivy III
0fa249a944
Fix tr
argument handling for missing arguments ( #1601 )
...
* tests/tr ~ confirm failure for missing argument(s)
* fix/tr ~ mimic GNU error reponse for missing argument(s)
2020-10-02 22:43:57 +02:00
Roy Ivy III
de0375f909
tests ~ reorganize tests
2020-06-01 18:30:04 -05:00