FRIGN
eee98ed3a4
Fix coding style
...
It was about damn time. Consistency is very important in such a
big codebase.
2014-11-13 18:08:43 +00:00
sin
0c5b7b9155
Stop using EXIT_{SUCCESS,FAILURE}
2014-10-02 23:46:59 +01:00
sin
ac402965d5
Fix comment style and nuke stray whitespace
2014-07-16 20:43:29 +01:00
Adria Garriga
b3a63a60e4
Improved tr
...
- Added support for character ranges ( a-z )
- Added support for complementary charset ( -c ), only in delete mode
- Added support for octal escape sequences
- Unicode now only works when there are no octal escape sequences,
otherwise behavior is not predictable at first sight.
- tr now supports null characters in the input
- Does not yet have support for character classes ( [:upper:] )
2014-07-16 20:40:54 +01:00
Hiltjo Posthuma
fab4b384e7
use agetline instead of agets
...
also use agetline where fgets with a static buffer was used previously.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:03:10 +01:00
Silvan Jegen
4e13ff39c3
Wrap mbtowc to check for errors
2014-04-12 21:29:16 +01:00
sin
bc13aa5960
No need to cast return value of mmap() in tr
2014-04-12 20:33:59 +01:00
Hiltjo Posthuma
a8f45b4568
tr: change delete behaviour
...
when one argument is specified use delete behaviour again
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-12 20:33:10 +01:00
Hiltjo Posthuma
ff474a8cbc
tr: add dflag, error with usage() on invalid flag combination
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09 15:40:21 +01:00
Hiltjo Posthuma
3e49e946b7
tr: fix escape code handling in set2
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09 15:40:04 +01:00
sin
e9a4af87bd
Staticise functions in tr(1)
2014-01-25 22:07:40 +00:00
sin
fe6144793f
Check mmap() return value and unmap at the end
2014-01-20 11:28:21 +00:00
Silvan Jegen
38f429a3d2
Add the tr program including man page
2014-01-20 11:22:28 +00:00