]> err.no Git - moreutils/log
moreutils
15 years agovipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491
Joey Hess [Thu, 11 Dec 2008 20:11:19 +0000 (15:11 -0500)]
vipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491

16 years agoreleasing version 0.33 0.33
Joey Hess [Fri, 31 Oct 2008 21:03:08 +0000 (17:03 -0400)]
releasing version 0.33

16 years agoFix zrun breakage introduced last version. Closes: #504129
Joey Hess [Fri, 31 Oct 2008 21:01:02 +0000 (17:01 -0400)]
Fix zrun breakage introduced last version. Closes: #504129

16 years agochangelog
Joey Hess [Tue, 28 Oct 2008 02:41:30 +0000 (22:41 -0400)]
changelog

16 years agoSupport installing moreutils into prefixes other than /usr
Evan Broder [Tue, 28 Oct 2008 01:58:48 +0000 (21:58 -0400)]
Support installing moreutils into prefixes other than /usr

16 years agoFix pod error in vidir(1). 0.32
Joey Hess [Mon, 27 Oct 2008 03:51:00 +0000 (23:51 -0400)]
Fix pod error in vidir(1).

16 years agozrun: Can be linked to zsomeprog to run the equivilant of zrun someprog.
Joey Hess [Sat, 27 Sep 2008 22:05:33 +0000 (18:05 -0400)]
zrun: Can be linked to zsomeprog to run the equivilant of zrun someprog.

* zrun: Can be linked to zsomeprog to run the equivilant of zrun someprog.
Closes: #411623 (Stefan Fritsch)
* zrun: Add support for lzma and lzo. (Stefan Fritsch)

16 years agotypo
Joey Hess [Wed, 9 Jul 2008 17:06:26 +0000 (13:06 -0400)]
typo

16 years agoreleasing version 0.31 0.31
Joey Hess [Sun, 29 Jun 2008 03:23:15 +0000 (23:23 -0400)]
releasing version 0.31

16 years agots: Support displaying fractional seconds via a "%.S" conversion specification. Close...
Joey Hess [Wed, 28 May 2008 18:32:48 +0000 (14:32 -0400)]
ts: Support displaying fractional seconds via a "%.S" conversion specification. Closes: #482789

16 years agopee.1: Document difference with tee in stdout.
Joey Hess [Wed, 28 May 2008 17:42:18 +0000 (13:42 -0400)]
pee.1: Document difference with tee in stdout.

16 years agoreleasing version 0.30 0.30
Joey Hess [Wed, 14 May 2008 23:42:14 +0000 (19:42 -0400)]
releasing version 0.30

16 years agoifne: If no command is specified, print usage information.
Joey Hess [Mon, 12 May 2008 20:04:36 +0000 (16:04 -0400)]
ifne: If no command is specified, print usage information.

16 years agoAdded -n option to ifne.
Vicho [Thu, 1 May 2008 10:17:45 +0000 (12:17 +0200)]
Added -n option to ifne.

With -n, ifne runs the command if the standard input is empty and does
nothing otherwise.

16 years agoupdate
Joey Hess [Sat, 10 May 2008 22:05:05 +0000 (18:05 -0400)]
update

16 years agotypo
Joey Hess [Sat, 10 May 2008 22:05:01 +0000 (18:05 -0400)]
typo

16 years agoeh, I didn't mean to revert that
Joey Hess [Sat, 10 May 2008 22:02:55 +0000 (18:02 -0400)]
eh, I didn't mean to revert that

(or push out the reversion, oops.. too late)

16 years agoRevert "debhelper v7; rules file minimisation"
Joey Hess [Sat, 10 May 2008 16:37:48 +0000 (12:37 -0400)]
Revert "debhelper v7; rules file minimisation"

This reverts commit 83e8da32e5d3154f1c97e6eb62c30450ff95b5af.

16 years agopatch for moreutils Makefile
Greg KH [Sat, 10 May 2008 05:49:30 +0000 (22:49 -0700)]
patch for moreutils Makefile

Hi,

I just packaged up moreutils for Gentoo and added it to their system,
I'll go add it to the SuSE repo system next week as well, thanks a lot
for the utils.

Here's a small patch to the makefile to make it easier for distros to
change the docbook2x-man binary as it is named other things (Gentoo for
example has it as docbook2man.pl).  This way it can be changed on the
build line, and the Makefile doesn't have to be patched.

Thanks for already fixing the DESTDIR thing, that also will make things
easier.

And also, you mention dropping you an email if you want to be notified
when new versions come out, I'd appreciate it if you could add me to
that list if you have one.

thanks again,

greg k-h

--------------------
Subject: Make docbook2x-man able to be overridden in Makefile

This makes it easier for distros that do not have the docbook2x-man
binary with that name, override it on the command line instead of having
to patch the Makefile.

16 years agodebhelper v7; rules file minimisation
Joey Hess [Sat, 26 Apr 2008 23:27:12 +0000 (19:27 -0400)]
debhelper v7; rules file minimisation

Use DESTDIR instead of PREFIX.

16 years agoreleasing version 0.29 0.29
Joey Hess [Tue, 15 Apr 2008 19:37:21 +0000 (15:37 -0400)]
releasing version 0.29

16 years agots improvements
Joey Hess [Sun, 13 Apr 2008 00:37:28 +0000 (20:37 -0400)]
ts improvements

* ts: Allow both -r and a format to be specified, to parse dates and output
  in a specified format.
* ts: Fix bug in timezone regexp.

16 years agofix mode of new file renamed from temp file
Joey Hess [Fri, 11 Apr 2008 23:11:33 +0000 (19:11 -0400)]
fix mode of new file renamed from temp file

16 years agominor changes
Joey Hess [Fri, 11 Apr 2008 23:03:50 +0000 (19:03 -0400)]
minor changes

16 years agohonor TMPDIR
Joey Hess [Fri, 11 Apr 2008 22:55:10 +0000 (18:55 -0400)]
honor TMPDIR

16 years agooptimize tempfile copying
Joey Hess [Fri, 11 Apr 2008 22:34:34 +0000 (18:34 -0400)]
optimize tempfile copying

Reuse the buffer and copy in chunks that are the full buffer size.

16 years agomore fixes to tempfile writeback
Joey Hess [Fri, 11 Apr 2008 22:27:40 +0000 (18:27 -0400)]
more fixes to tempfile writeback

Avoid overwriting symlinks with the temp file.

When renaming the temp file, restore the original file's permissions after.

16 years agoset umask before calling mkstemp
Joey Hess [Fri, 11 Apr 2008 21:47:28 +0000 (17:47 -0400)]
set umask before calling mkstemp

This is a POSIX portability thing.

Restore the original umask after.

16 years agoupdate physmem copyright
Joey Hess [Fri, 11 Apr 2008 21:44:19 +0000 (17:44 -0400)]
update physmem copyright

The file was earlier changed to the older, GPL 2 version.

16 years agofix two bugs writing the output file
Joey Hess [Fri, 11 Apr 2008 21:42:38 +0000 (17:42 -0400)]
fix two bugs writing the output file

If the output file doesn't exist, the new code was buggy and did not create
it.

Also, the rename could fail (ie, /tmp on another filesystem). So if it
falls fall back to the manual copy.

16 years agomove code into a function
Joey Hess [Fri, 11 Apr 2008 20:15:29 +0000 (16:15 -0400)]
move code into a function

16 years agofix edge cases
Joey Hess [Fri, 11 Apr 2008 20:10:18 +0000 (16:10 -0400)]
fix edge cases

If a file an exact multiple of the max buffer size were sponged, it
would fail at the end due to trying to write 0 remaining bytes from the
buffer to the temp file. A similar bug occurred if sponge's input was
empty. Amazing how such a seemingly simple thing can get so tricky..

Also added check for read error from the temp file, just in case.

16 years agoreorder defines
Joey Hess [Fri, 11 Apr 2008 19:54:30 +0000 (15:54 -0400)]
reorder defines

16 years agoset up signal handlers before creating temp file
Joey Hess [Fri, 11 Apr 2008 19:53:38 +0000 (15:53 -0400)]
set up signal handlers before creating temp file

Avoids a small race..

16 years agoanother round of whitespace fixes
Joey Hess [Fri, 11 Apr 2008 19:50:47 +0000 (15:50 -0400)]
another round of whitespace fixes

16 years agoremove debug
Brock Noland [Fri, 11 Apr 2008 19:22:39 +0000 (14:22 -0500)]
remove debug

Signed-off-by: Brock Noland <brockn@gmail.com>
16 years agosponge fixes
Brock Noland [Fri, 11 Apr 2008 18:16:09 +0000 (13:16 -0500)]
sponge fixes

*Fixed many bugs relating to renaming of temp file to output file
*Doesn't set umask, not sure what correct behavior is
*Does not try and delete /tmp/sponge.XXXXXX on exit if there was no temporary file used
*Uses temporary file when buffer * 2 is >= mem_available as the buffer will double shortly after this operation
*Only traps signals if we are creating a temporary file
*Cleaned up error messages

Signed-off-by: Brock Noland <brockn@gmail.com>
16 years agobetter usage message
Joey Hess [Fri, 11 Apr 2008 04:36:46 +0000 (00:36 -0400)]
better usage message

16 years agoupdate changelog
Joey Hess [Fri, 11 Apr 2008 04:35:24 +0000 (00:35 -0400)]
update changelog

16 years agoconvert to new format
Joey Hess [Fri, 11 Apr 2008 04:32:31 +0000 (00:32 -0400)]
convert to new format

16 years agofirst pass thru the code
Joey Hess [Fri, 11 Apr 2008 03:49:31 +0000 (23:49 -0400)]
first pass thru the code

Mostly limited to layout consistency changes, but I also moved a block of
code into a function, and removed a funky use of enum.

16 years agomake sponge use a temp file if the input is large
Joey Hess [Fri, 11 Apr 2008 03:28:15 +0000 (23:28 -0400)]
make sponge use a temp file if the input is large

patch from Brock Noland

16 years agosponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of...
Joey Hess [Thu, 10 Apr 2008 18:11:21 +0000 (14:11 -0400)]
sponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().

16 years agosponge: Ensure that suspending/resuming doesn't result in partial writes of the data...
Joey Hess [Thu, 10 Apr 2008 18:05:25 +0000 (14:05 -0400)]
sponge: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().

16 years agoAdd ifne, contributed by Javier Merino.
Joey Hess [Thu, 20 Mar 2008 16:57:08 +0000 (12:57 -0400)]
Add ifne, contributed by Javier Merino.

16 years agoMoreutils: Added ifne
Javier Merino [Thu, 20 Mar 2008 12:03:26 +0000 (13:03 +0100)]
Moreutils: Added ifne

Hi, I read the suggestion about ifne in the Discussion page of
moreutils and found it interesting. It's a command that runs another
process if the standard input is not empty. I think it can be very
useful in admin scripts so I've implemented it. I attach a patch
against the current head of moreutils' git. You may include it in
moreutils if you think it's worth it.

I've considered making an "ifempty" or "ifne -v" that would run a
command if the standard input is empty, but I'm not sure if that could
be useful. Any comments will be appreciated. Regards,

Javi

16 years agoreleasing version 0.28 0.28
Joey Hess [Sat, 2 Feb 2008 22:27:02 +0000 (17:27 -0500)]
releasing version 0.28

16 years ago* Add example to man page about recursive modification of directories.
Joey Hess [Sat, 2 Feb 2008 22:24:39 +0000 (17:24 -0500)]
* Add example to man page about recursive modification of directories.
Closes: #390099
16 years ago* vidir: Applied patch from Stefan Fritsch (one part of #412176):
Joey Hess [Sat, 2 Feb 2008 22:18:59 +0000 (17:18 -0500)]
* vidir: Applied patch from Stefan Fritsch (one part of #412176):
  - Check for control characters (especially newlines) in filenames
    and error out, since this can greatly confuse the editor or vidir.
  - If the source of a rename does not exist (and thus the rename will fail
    anyway), vidir should not move an existing target file to a tmpfile.
  - If a directory is renamed, vidir should take that into account when
    renaming files in this directory.
  - If a directory name is passed as name/ to vidir, vidir should not
    add second slash after the name.
* vidir: Add support for unlinking directories. To recursivly delete
  a directory and its contents, pipe find to vidir, and delete the directory
  and its contents in the editor. Closes: #412176

16 years ago* Moved to a git repository.
Joey Hess [Sat, 2 Feb 2008 22:03:34 +0000 (17:03 -0500)]
* Moved to a git repository.

16 years agoreleasing version 0.27 origin/origin 0.27
joeyh [Sat, 2 Feb 2008 21:44:09 +0000 (21:44 +0000)]
releasing version 0.27

16 years ago* vidir: Check exit codes of close. Closes: #463739
joeyh [Sat, 2 Feb 2008 21:42:22 +0000 (21:42 +0000)]
* vidir: Check exit codes of close. Closes: #463739

17 years agoreleasing version 0.26 0.26
joeyh [Wed, 28 Nov 2007 19:24:05 +0000 (19:24 +0000)]
releasing version 0.26

17 years ago* isutf8: Correct inverted exit code when passed a file to check.
joeyh [Wed, 28 Nov 2007 19:19:39 +0000 (19:19 +0000)]
* isutf8: Correct inverted exit code when passed a file to check.
Closes: #453306
17 years ago* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951 0.25
joeyh [Mon, 12 Nov 2007 17:04:11 +0000 (17:04 +0000)]
* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951
  Many thanks to liw for the patch.

17 years agoadd homepage field
joeyh [Tue, 6 Nov 2007 20:56:12 +0000 (20:56 +0000)]
add homepage field

17 years agoVcs- fields are now official
joeyh [Wed, 10 Oct 2007 22:31:20 +0000 (22:31 +0000)]
Vcs- fields are now official

17 years ago* vidir: Force numbers to normalised integers. 0.24
joeyh [Sun, 16 Sep 2007 17:06:14 +0000 (17:06 +0000)]
* vidir: Force numbers to normalised integers.
* vidir: Abort on unknown item numbers rather than deleting them.
Closes: #442440
17 years agoreleasing version 0.23 0.23
joeyh [Thu, 6 Sep 2007 01:54:45 +0000 (01:54 +0000)]
releasing version 0.23

17 years agoreformat
joeyh [Thu, 6 Sep 2007 01:45:04 +0000 (01:45 +0000)]
reformat

17 years ago* Don't strip binaries for debian package if built with
joeyh [Thu, 6 Sep 2007 01:28:28 +0000 (01:28 +0000)]
* Don't strip binaries for debian package if built with
  DEB_BUILD_OPTIONS=nostrip. Closes: #437577
* Include Michael Tokarev's lckdo program and replace / conflict with the
  current lckdo package. (Robert Edmonds) Closes: #432906
* lckdo: Don't clear other flags when setting close on exec.

17 years agofix repo path
joeyh [Mon, 13 Aug 2007 04:30:10 +0000 (04:30 +0000)]
fix repo path

17 years ago* Add pointer to join from combine's man page. Closes: #435516
joeyh [Wed, 1 Aug 2007 17:45:57 +0000 (17:45 +0000)]
* Add pointer to join from combine's man page. Closes: #435516

17 years agoreleasing version 0.22 0.22
joeyh [Mon, 25 Jun 2007 20:14:11 +0000 (20:14 +0000)]
releasing version 0.22

17 years ago* vidir, zrun: Don't put temp files in the current directory. Closes: #429367
joeyh [Mon, 25 Jun 2007 20:10:35 +0000 (20:10 +0000)]
* vidir, zrun: Don't put temp files in the current directory. Closes: #429367

17 years agoreleasing version 0.21 0.21
joeyh [Mon, 25 Jun 2007 17:08:46 +0000 (17:08 +0000)]
releasing version 0.21

17 years ago* Patch from Sergej Pupykin fixing ifdata -pN.
joeyh [Mon, 25 Jun 2007 17:06:51 +0000 (17:06 +0000)]
* Patch from Sergej Pupykin fixing ifdata -pN.

17 years agosort
joeyh [Sun, 24 Dec 2006 04:55:17 +0000 (04:55 +0000)]
sort

17 years agoreorder
joeyh [Sun, 24 Dec 2006 02:55:50 +0000 (02:55 +0000)]
reorder

17 years agoreleasing version 0.20 0.20
joeyh [Sat, 23 Dec 2006 20:58:47 +0000 (20:58 +0000)]
releasing version 0.20

18 years ago* Typo fixes from Ralf Wildenhues.
joeyh [Sun, 26 Nov 2006 19:49:18 +0000 (19:49 +0000)]
* Typo fixes from Ralf Wildenhues.

18 years agoreleasing version 0.19 0.19
joeyh [Sun, 12 Nov 2006 03:03:46 +0000 (03:03 +0000)]
releasing version 0.19

18 years agoadd XS-Vcs-Svn field
joeyh [Wed, 4 Oct 2006 17:26:48 +0000 (17:26 +0000)]
add XS-Vcs-Svn field

18 years agoreleasing version 0.18 0.18
joeyh [Thu, 14 Sep 2006 19:15:29 +0000 (19:15 +0000)]
releasing version 0.18

18 years ago* spongs: Output to stdout if no file is specified, useful in a pipeline
joeyh [Thu, 14 Sep 2006 19:13:26 +0000 (19:13 +0000)]
* spongs: Output to stdout if no file is specified, useful in a pipeline
  such as: cvs diff | sponge | patch -R -p0
Closes: #387501
18 years ago* mispipe.docbook: Typo. Closes: #386756
joeyh [Sat, 9 Sep 2006 22:47:07 +0000 (22:47 +0000)]
* mispipe.docbook: Typo. Closes: #386756

18 years agoreleasing version 0.17 0.17
joeyh [Fri, 8 Sep 2006 00:49:51 +0000 (00:49 +0000)]
releasing version 0.17

18 years ago* Add mispipe, contributed by Nathanael Nerode. Pipes together two commands,
joeyh [Fri, 8 Sep 2006 00:33:43 +0000 (00:33 +0000)]
* Add mispipe, contributed by Nathanael Nerode. Pipes together two commands,
  returning the exit status of the first.

18 years ago* Add missing \n to sponge usage. Closes: #383944
joeyh [Sun, 20 Aug 2006 22:37:20 +0000 (22:37 +0000)]
* Add missing \n to sponge usage. Closes: #383944

18 years agoreleasing version 0.16 0.16
joeyh [Sat, 19 Aug 2006 19:30:56 +0000 (19:30 +0000)]
releasing version 0.16

18 years agosupport lastlog format
joeyh [Sat, 19 Aug 2006 19:26:59 +0000 (19:26 +0000)]
support lastlog format

18 years ago* Change the default ts format to include the month and day, for consistency
joeyh [Fri, 18 Aug 2006 05:46:19 +0000 (05:46 +0000)]
* Change the default ts format to include the month and day, for consistency
  with syslog format.
* Add -r switch to ts, which makes it convert existing timestamps in
  the input into relative times, such as "15m2s ago".

18 years agoreleasing version 0.15 0.15
joeyh [Wed, 26 Jul 2006 02:51:02 +0000 (02:51 +0000)]
releasing version 0.15

18 years ago* vidir, vipe: Use /usr/bin/editor if it's present, and EDITOR and VISUAL
joeyh [Wed, 26 Jul 2006 02:46:50 +0000 (02:46 +0000)]
* vidir, vipe: Use /usr/bin/editor if it's present, and EDITOR and VISUAL
  arn't set, to comply with Debian policy. For portability, fall back to vi
  if there's no /usr/bin/editor. Closes: #378623

18 years ago* combine: Man page improvements, to clarify even more that order does
joeyh [Wed, 26 Jul 2006 02:40:28 +0000 (02:40 +0000)]
* combine: Man page improvements, to clarify even more that order does
  matter and that the operations are not commutative. Closes: #361123
* combine: The behavior of "or" was fairly strange if lines were repeated in
  a file. Changed behavior to just print all lines from both files, even
  if this means printing dups. Not sure I like this behavior either, but
  it's consistent with the very useful behaviors of "and" and "not".

18 years ago* vidir: Don't abort if it sees an empty or all-whitespace line.
joeyh [Thu, 13 Jul 2006 21:10:34 +0000 (21:10 +0000)]
* vidir: Don't abort if it sees an empty or all-whitespace line.
* vidir: If just a filename is removed and the number is left,
  treat this the same as removing the whole line, and delete the file,
  instead of trying to rename the file to "".
* vidir: Remove the periods after the item numbers.
* vidir: Man page improvements. Closes: #378122

18 years ago* Remove notes about potential tools from README, moved to wiki.
joeyh [Thu, 13 Jul 2006 16:22:44 +0000 (16:22 +0000)]
* Remove notes about potential tools from README, moved to wiki.

18 years agoreleasing version 0.14 0.14
joeyh [Wed, 12 Jul 2006 17:36:43 +0000 (17:36 +0000)]
releasing version 0.14

18 years agoreleasing version 0.13 0.13
joeyh [Wed, 12 Jul 2006 16:55:15 +0000 (16:55 +0000)]
releasing version 0.13

18 years ago* ifdata: typo
joeyh [Thu, 29 Jun 2006 16:02:21 +0000 (16:02 +0000)]
* ifdata: typo

18 years agoreleasing version 0.12 0.12
joeyh [Wed, 28 Jun 2006 18:05:19 +0000 (18:05 +0000)]
releasing version 0.12

18 years ago* ifdata: Fix bug in argument parsing that could make it segfault.
joeyh [Wed, 28 Jun 2006 18:04:23 +0000 (18:04 +0000)]
* ifdata: Fix bug in argument parsing that could make it segfault.
* combine: Allow operators to be written in any case.

18 years ago* zrun: Add usage message.
joeyh [Sun, 25 Jun 2006 02:12:31 +0000 (02:12 +0000)]
* zrun: Add usage message.

18 years ago* Really fix typo. Closes: #369485
joeyh [Tue, 30 May 2006 15:53:49 +0000 (15:53 +0000)]
* Really fix typo. Closes: #369485

18 years agoreleasing version 0.11 0.11
joeyh [Sat, 27 May 2006 23:18:29 +0000 (23:18 +0000)]
releasing version 0.11

18 years agoreleasing version 0.10 0.10
joeyh [Sun, 2 Apr 2006 22:47:56 +0000 (22:47 +0000)]
releasing version 0.10

18 years ago* ifdata: patch from Adam Lackorzynski to translate French error messages
joeyh [Sun, 2 Apr 2006 22:32:24 +0000 (22:32 +0000)]
* ifdata: patch from Adam Lackorzynski to translate French error messages
  to English and to convert some #defines to enums.
* ifdata: patch from Adam Lackorzynski to avoid printing info for
  bogus interface. Closes: #360433
* Add zrun, contributed by Chung-chieh Shan (you might prefer to alias it to
  "z").

18 years agoreleasing version 0.9 0.9
joeyh [Mon, 27 Mar 2006 18:48:20 +0000 (18:48 +0000)]
releasing version 0.9

18 years ago* Typo fixes. Closes: #359039, #359040
joeyh [Mon, 27 Mar 2006 18:45:08 +0000 (18:45 +0000)]
* Typo fixes. Closes: #359039, #359040
* pee: don't send a copy of every line sent to every command to stdout.
  Seems best for it not to output anything to stdout on its on at all.
Closes: #359041
18 years ago* ifdata: robustness patch from Adam Lackorzynski, in particular deal with
joeyh [Sat, 25 Mar 2006 17:52:25 +0000 (17:52 +0000)]
* ifdata: robustness patch from Adam Lackorzynski, in particular deal with
  /proc not mounted. Closes: #358930