]> err.no Git - moreutils/log
moreutils
14 years agoCap sillyness. Closes: #570815
Joey Hess [Sun, 21 Feb 2010 18:16:23 +0000 (13:16 -0500)]
Cap sillyness. Closes: #570815

14 years agoreleasing version 0.38
Joey Hess [Tue, 9 Feb 2010 21:42:14 +0000 (16:42 -0500)]
releasing version 0.38

14 years agochangelog
Joey Hess [Tue, 9 Feb 2010 20:47:40 +0000 (15:47 -0500)]
changelog

14 years agoparallel: Define WEXITED to allow building on FreeBSD kernel. (This is somewhat exper...
Joey Hess [Tue, 9 Feb 2010 20:40:14 +0000 (15:40 -0500)]
parallel: Define WEXITED to allow building on FreeBSD kernel. (This is somewhat experimental.)

14 years agofreebsd patch from Enrico Tassi
Joey Hess [Tue, 9 Feb 2010 20:35:10 +0000 (15:35 -0500)]
freebsd patch from Enrico Tassi

  * ifdata:
    - Use unsigned long for ioctl command.
      On both Linux and FreeBSD ioctl expects an unsigned long command.
      FreeBSD kernel was complaining about the (by chance) signedness of
      the ioctl command (then probably ignored, since it worked both on
      Linux and FreeBSD).

        WARNING pid 799 (ifdata): ioctl sign-extension ioctl ffffffffc0206933

    - put #if defined(__linux__) around ioctls that are not supported by
      FreeBSD

    - Mention in the manpage that some options are Linux specific.

15 years agowording
Joey Hess [Sat, 31 Oct 2009 23:02:53 +0000 (19:02 -0400)]
wording

15 years agoparallel: Allow running independent commands, like `parallel -j3 -- ls df "echo hi"`
Joey Hess [Sat, 31 Oct 2009 14:20:08 +0000 (10:20 -0400)]
parallel: Allow running independent commands, like `parallel -j3 -- ls df "echo hi"`

15 years agoDescription improvements. Closes: #549450 (Thanks, Justin B Rye)
Joey Hess [Mon, 5 Oct 2009 17:33:27 +0000 (13:33 -0400)]
Description improvements. Closes: #549450 (Thanks, Justin B Rye)

15 years agoreleasing version 0.37
Joey Hess [Sat, 25 Jul 2009 08:23:55 +0000 (10:23 +0200)]
releasing version 0.37

15 years agoparallel.1: Typo fixes. Closes: #538147
Joey Hess [Sat, 25 Jul 2009 08:03:42 +0000 (10:03 +0200)]
parallel.1: Typo fixes. Closes: #538147

15 years agoupdate
Joey Hess [Sat, 25 Jul 2009 08:02:56 +0000 (10:02 +0200)]
update

15 years agosupport -n option
Pierre Habouzit [Wed, 22 Jul 2009 09:17:20 +0000 (11:17 +0200)]
support -n option

This makes parallel stuff more than one argument to the subcommands.
It's very useful when subcommands are slow to start and are able to
process multiple files at once, that tasks are small but plenty.

For example:
    $ ./parallel -n 3 echo -- a b c d e f g h
    a b c
    d e f
    g h

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
15 years agoparallel: Clarify man page regarding CPUs. Closes: #536597
Joey Hess [Wed, 15 Jul 2009 14:13:52 +0000 (10:13 -0400)]
parallel: Clarify man page regarding CPUs. Closes: #536597

15 years agoreleasing version 0.36
Joey Hess [Fri, 10 Jul 2009 15:04:21 +0000 (11:04 -0400)]
releasing version 0.36

15 years agoupdate
Joey Hess [Fri, 10 Jul 2009 15:01:25 +0000 (11:01 -0400)]
update

15 years agouse sysconf to determine number of processors
Joey Hess [Fri, 10 Jul 2009 14:51:46 +0000 (10:51 -0400)]
use sysconf to determine number of processors

15 years agoupdate
Joey Hess [Fri, 10 Jul 2009 14:51:43 +0000 (10:51 -0400)]
update

15 years agoMerge commit 'remotes/tollef/master'
Joey Hess [Fri, 10 Jul 2009 14:37:28 +0000 (10:37 -0400)]
Merge commit 'remotes/tollef/master'

15 years agoFix indentation
Tollef Fog Heen [Fri, 10 Jul 2009 12:11:17 +0000 (14:11 +0200)]
Fix indentation

15 years agoparallel: Argument validation
Tollef Fog Heen [Fri, 10 Jul 2009 12:09:48 +0000 (14:09 +0200)]
parallel: Argument validation

Make sure the arguments passed to -j and -l are numbers and error out
if they are not.

15 years agoparallel: Assume -j 1 if no -j or -l is given
Tollef Fog Heen [Fri, 10 Jul 2009 11:54:21 +0000 (13:54 +0200)]
parallel: Assume -j 1 if no -j or -l is given

15 years agomispipe: Fix closing of extra pipe FD before starting command so it is not inherited...
Joey Hess [Thu, 2 Jul 2009 19:58:38 +0000 (15:58 -0400)]
mispipe: Fix closing of extra pipe FD before starting command so it is not inherited by daemons. Closes: #533448 (Thanks, Jeremie Koenig)

15 years agoavoid uninitalized value warning
Joey Hess [Thu, 2 Jul 2009 19:17:59 +0000 (15:17 -0400)]
avoid uninitalized value warning

15 years agomisc formatting
Joey Hess [Thu, 2 Jul 2009 19:17:27 +0000 (15:17 -0400)]
misc formatting

15 years agoparallel: New program, contributed by Tollef Fog Heen, that can run multiple jobs...
Joey Hess [Thu, 2 Jul 2009 19:16:26 +0000 (15:16 -0400)]
parallel: New program, contributed by Tollef Fog Heen, that can run multiple jobs in parallel, optionally checking load average.

15 years agoparallel: Implement -l (maxload) and -i (replace {})
Tollef Fog Heen [Tue, 30 Jun 2009 02:49:07 +0000 (04:49 +0200)]
parallel: Implement -l (maxload) and -i (replace {})

Add support for only starting jobs when the load average is low
enough, this is done with -l and acts similarly to how make does it.

In order to construct more complex commands, add -i which will make
parallel replace {} with the argument at an arbitrary place in the
command line.

15 years agoparallel: Fix typo in usage string
Tollef Fog Heen [Tue, 30 Jun 2009 02:28:00 +0000 (04:28 +0200)]
parallel: Fix typo in usage string

15 years agoReturn non-zero if something goes wrong
Tollef Fog Heen [Tue, 30 Jun 2009 02:26:16 +0000 (04:26 +0200)]
Return non-zero if something goes wrong

The return code of parallel is the OR-ed exit status of all the
children, with 1 being OR-ed in if any child is killed.

15 years agoCompile parallel by default
Tollef Fog Heen [Tue, 30 Jun 2009 02:25:55 +0000 (04:25 +0200)]
Compile parallel by default

15 years agoAdd initial writeup of parallel tool
Tollef Fog Heen [Tue, 30 Jun 2009 02:19:07 +0000 (04:19 +0200)]
Add initial writeup of parallel tool

15 years agoreleasing version 0.35 origin/HEAD origin/master 0.35
Joey Hess [Tue, 5 May 2009 19:19:37 +0000 (15:19 -0400)]
releasing version 0.35

15 years agoremove unnecessary quotes
Joey Hess [Tue, 5 May 2009 19:09:40 +0000 (15:09 -0400)]
remove unnecessary quotes

15 years agoisutf8: Reject UTF-8-encoded UTF-16 surrogates. Closes: #525301 (Thanks, Jakub Wilk...
Joey Hess [Tue, 5 May 2009 19:06:34 +0000 (15:06 -0400)]
isutf8: Reject UTF-8-encoded UTF-16 surrogates. Closes: #525301 (Thanks, Jakub Wilk and liw)

15 years agoifdata: Don't assume that all interface names are 6 characters or less, for instance...
Joey Hess [Sun, 3 May 2009 00:41:06 +0000 (20:41 -0400)]
ifdata: Don't assume that all interface names are 6 characters or less, for instance "wmaster0" is longer. Increase the limit to 20 characters. Closes: #526654 (Thanks, Alan Pope)

15 years agoreleasing version 0.34 0.34
Joey Hess [Thu, 11 Dec 2008 20:12:53 +0000 (15:12 -0500)]
releasing version 0.34

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