On 04/06/2015 04:43 PM, Greg Reagle wrote:
I am including the patch as an attachment so webmail doesn't mess up the
formatting.
You can push your edits directly to the repo. Also see the
http://suckless.org/other_projects page, where dvtm is already listed.
/rocks and /other_projects overlap
Useful in (rare) cases like:
$ printf ' c\nx a\n0 b\n' | sort -k 2,1.3
And this is how POSIX wants it.
---
sort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
>From 8c82c0f3772a1e657e39ebcb716023d94abd53d3 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Su
---
sort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
>From 0bdff11745f4491a70566ab25b5996c78655a562 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 5 Apr 2015 20:33:07 +0200
Subject: [PATCH 3/3] sort: allow 0 as key's end_char
---
sort.c | 2 +-
1 file changed, 1 i
---
sort.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
>From 67834255a7da065ef7cd2fcc5275e5b072161f00 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 5 Apr 2015 20:31:28 +0200
Subject: [PATCH 2/3] sort: apply -b only to "custom" keys
---
sort.c | 3 ++-
1 fi
s(-)
>From fbf77d0517644f1642f2067d3e0bede828e563f7 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 1 Feb 2015 21:00:37 +0100
Subject: [PATCH 1/3] sort: add support for delimiter strings
Instead of just single characters. This also fixes
some bugs in columns(). Example bug:
$ printf "a b\nc b x\n&quo
>From eed5857550f2d16ff7c454e6dd9342905bc7a8e0 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Mon, 23 Mar 2015 18:53:38 +0100
Subject: [PATCH] sort: fix syntax error
---
sort.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sort.c b/sort.c
index cea25aa..47434dc 100644
--- a/sor
00:00:00 2001
From: Jakob Kramer
Date: Sun, 8 Feb 2015 20:22:05 +0100
Subject: [PATCH] sort: use size_t for pointer offsets
The estrtoll function is meant to simplify the parse_keydef
function.
---
sort.c | 44 +++-
1 file changed, 27 insertions(+),
>From 3aeae0148a75a02e57c4d19b00b68dbb1773d848 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 11 Feb 2015 01:59:04 +0100
Subject: [PATCH 2/3] add estrndup
---
libutil/ealloc.c | 17 +
util.h | 2 ++
2 files changed, 19 insertions(+)
diff --git a/libu
>From e161205d2af1e163fb55f9e5683deaec76433a90 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 11 Feb 2015 02:08:17 +0100
Subject: [PATCH 3/3] make use of en*alloc functions
---
expr.c | 8 ++--
grep.c | 16
sort.c | 9 ++---
3 files changed, 8 inserti
>From 59ab03dc28a6d20283ac1cf47665b690deff3954 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 11 Feb 2015 01:40:52 +0100
Subject: [PATCH 1/3] add en*alloc functions
---
libutil/ealloc.c | 38 +++---
util.h | 6 +-
2 files changed,
This is a useful behavior if you want to reorder the lines,
because otherwise you might end up with originally two lines
on one, e.g.
$ echo -ne "foo\nbar" | sort
barfoo
>From 6a2b31c06be91a64fe6ea7acea65c00db3a336e0 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date
>From 52c38b07eaa58ef9fb09bdc775f425ea7908b142 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 1 Feb 2015 21:45:35 +0100
Subject: [PATCH] sort: minor manual page adjustments
---
sort.1 | 16 ++--
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/sort.1 b/sor
>From b1004cffcaca6008896f03cf351a8231bd505c3c Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 1 Feb 2015 17:45:51 +0100
Subject: [PATCH] sort manpage: fix key definition
---
sort.1 | 19 ++-
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/sort.1 b/sor
.nlines and .capacity are used as array indices and
should therefore be of type size_t.
>From 29c93cf7ac5530f7144f869c6e7a964a971db062 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sat, 31 Jan 2015 20:57:29 +0100
Subject: [PATCH] Use size_t for number of lines in linebuf
.nlines
>From ffc6ad35ebb3bcfe598e89d86ae64170699d63a8 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sat, 31 Jan 2015 19:12:18 +0100
Subject: [PATCH] sort: support sorting decimal numbers correctly
sorry not to have used strtold from the beginning
---
sort.c | 12
1 file changed
would definitely enjoy
meeting some of you people there.
I do not need a room in a hostel though, I’m staying at somebody else’s
place.
Greetings,
Jakob
whole number
On 2014-06-24 Jakob Kramer wrote:
> Finally, I don't think that reimplementing a function that already is
> in the standard library for "more efficiency" makes any sense.
> Correctness is most important, and I rather trust my C library
> implementation on that.
I don't really get why using would make the program more
complex, add to SLOC, make it slower... I don't think it is a big loss
to use -lm, as it is mostly a problem with the libc you might be using
if you have to link with an extra library for math functions.
Also, specifying something as a
Am 21.06.2014 16:05, schrieb Eric Pruitt:
On Sat, Jun 21, 2014 at 09:58:16AM +0200, Roberto E. Vargas Caballero wrote:
I do not understand why CEIL should return an integer value. From my
point of view it should return a value of any type that is the ceil
of the parameter. Can you explain a bit
Use printf("%*s", n, "") instead of allocating
a string filled with spaces.
>From 3cf11b384e2cf0a61c3bbf6a887d301897fecb08 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 4 Jun 2014 17:46:22 +0200
Subject: [PATCH] cols: simplify filling with spaces
Use printf(&
[PATCH] remove unnecessary calls to realloc from tee
>From 0ec20b994eab3fdd7949fbd8c6503990eb1ff94f Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Tue, 3 Jun 2014 00:15:52 +0200
Subject: [PATCH] remove unnecessary calls to realloc from tee
---
tee.c | 19 +--
1 f
add -t flag to sort
>From 7722341e211f8072ea816087dd5994723a354e1c Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Thu, 15 May 2014 20:08:17 +0200
Subject: [PATCH] add -t flag to sort
---
sort.1 | 28 +--
sort.c |
---
sort.c | 17 +++--
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/sort.c b/sort.c
index 203490b..a00e902 100644
--- a/sort.c
+++ b/sort.c
@@ -29,7 +29,7 @@ struct kdlist {
};
static struct kdlist *head = NULL;
-static struct kdlist *curr = NULL;
+static struct k
renice(1): renice is not PASTE
>From d19240961385f720e3422b619b47151232462418 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Tue, 6 May 2014 16:13:22 +0200
Subject: [PATCH] renice(1): renice is not PASTE
---
renice.1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ren
-k 2n is possible!
>From fea5f42e048fb11c17413b455cfcc55c73fde701 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Tue, 6 May 2014 16:07:05 +0200
Subject: [PATCH 3/3] sort: add support for "per-keydef" flags
---
sort.1 | 27 +++---
without this it would sort a blank line *after*
lines that have leading white space.
>From 8dcf7e1a8070661280436c3cf8b5caa53a75dce6 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Tue, 6 May 2014 13:37:05 +0200
Subject: [PATCH 2/3] sort: ignore trailing newline while sorting
---
sort.c
next step is to parse input as decimals, but this
is still needed so you get an error if you try to
specify negative numbers as fields.
>From e6eda6282fda98257925ffbaf71bac9b87c0d522 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Tue, 6 May 2014 13:35:06 +0200
Subject: [PATCH 1/3] sort: w
8 patches attached
>From 51f945a3920fd334429855a10bf8467bc9cef4e5 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sat, 3 May 2014 18:28:20 +0200
Subject: [PATCH 1/8] sort: linebuf is no global
---
sort.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sort.c b/sor
Zero out the spwd structure and the calculated password. This time
using explicit_bzero.
>From 94c271d60120f398b0d50e3258c50b237c9d6b7b Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 30 Apr 2014 14:15:26 +0200
Subject: [PATCH] su: zero out encrypted passwords
---
su.c | 2 ++
1 f
The patch that I sent before does not check if both passwords are of the
same length, which is bad.
>From a4001bf30fb44245fc7da12b61fcf7df5f762058 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 30 Apr 2014 00:20:31 +0200
Subject: [PATCH 2/2] su: use "constant time" memc
>From a9e593c8ee498443a2a260382945c49e14c424cc Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 30 Apr 2014 00:20:31 +0200
Subject: [PATCH 2/2] su: use "constant time" memcmp to compare password
---
su.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
>From 734e8e4471c808eee52021d10497429ea3fc5269 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Wed, 30 Apr 2014 00:10:40 +0200
Subject: [PATCH 1/2] su: zero out cryptpass
---
su.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/su.c b/su.c
index 9beb7d0..16ce6c2 100644
--- a/su.c
++
On 04/17/2014 02:56 PM, Jakob Kramer wrote:
> Here is my patch to add -k support to sort and remove the -u flag from
> it
Here is my patch to add -k support and *fix* the -u flag instead.
Please forget about the other patch.
>From 43b297c3791ef0b5a5c551c1b6050e222e559610 Mon Sep 17 00:0
; is
given. A correct implementation of -u should rather check if the sort
function thinks they were the same.
The -k flag is not complete in that it does not support modifiers
specific to a single key definition.
Regards,
Jakob Kramer
>From 1ac4b7f4339c78b08cdb942b310a4c653ce8d1b1 Mon Sep 17
There is wrong information about the installation directory and about
how to run quark in the README.
>From d8a3795aef804715fee2e367cba4f843bcd4b2da Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Thu, 10 Apr 2014 20:43:49 +0200
Subject: [PATCH] correct information in README
---
README
Nice long file name for a patch...
>From 81aaa0b985d80a097cba316a583eac5336ed3028 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Fri, 18 Oct 2013 21:57:24 +0200
Subject: [PATCH] fix SHELL being set to the usr's home directory
---
su.c | 2 +-
1 file changed, 1 insertion(+), 1
On 07/05/2013 04:48 PM, Roberto E. Vargas Caballero wrote:
>> Sponge's "killer feature" is that it doesn't open the output file until
>> after the input is finished. Using it in a pipeline removes this,
>> because it's something else instead of sponge writing to the file.
>
>
> There is something
alled
without arguments to write to stdout.
This version uses util/concat.c to copy stdin to a temporary file and
writing it back to the output file afterwards.
Now the temporary file creation is also done safer than before.
Regards,
Jakob Kramer
diff --git a/LICENSE b/LICENSE
index d959501..8f1caaf 1
u...@netbeisser.de wrote:
On Tue, Jun 25, 2013 at 08:24:08PM +0200, Jakob Kramer wrote:
so why keep it executable...
commit 8512381861878f2123a50a162a0d1ea550157da5
Author: Jakob Kramer
Date: Tue Jun 25 20:10:39 2013 +0200
removed executable bits from chvt.c
diff --git a/chvt.c b
so why keep it executable...
commit 8512381861878f2123a50a162a0d1ea550157da5
Author: Jakob Kramer
Date: Tue Jun 25 20:10:39 2013 +0200
removed executable bits from chvt.c
diff --git a/chvt.c b/chvt.c
old mode 100755
new mode 100644
Hi!
I wrote a sponge program, but I am not fully convinced of it yet. What
do you think?
Regards,
Jakob Kramer
commit 3565860b40ea4a8220d5029e3d74b437a9205cda
Author: Jakob Kramer
Date: Tue Jun 25 19:55:37 2013 +0200
added sponge
diff --git a/Makefile b/Makefile
index 9aeb5c4..7f91bac
Hi,
in the current hg of dmenu is a little mistake.
You changed the include after renaming libdraw but you forgot to change
the linker options in config.mk so it still searches for libdraw and not
libdc.
Greetings
Jakob Nixdorf
--
Mail: flo...@shadowice.org
Jabber: flo...@user-helfen
On Wed, Sep 02, 2009 at 01:41:34PM +0100, Kai Hendry wrote:
> For slideshows unfortunately only Opera properly supports the project
> media type.
I use S5:
http://meyerweb.com/eric/tools/s5/
Jakob
43 matches
Mail list logo