[hackers] [sbase][PATCH] sort.1: fix typo

2023-01-24 Thread Andrea Calligaris
--- sort.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sort.1 b/sort.1 index 757aec5..8808e72 100644 --- a/sort.1 +++ b/sort.1 @@ -40,7 +40,7 @@ indicating the location of the disorder. Skip non-whitespace and non-alphanumeric characters. .It Fl f Ignore letter case when

[hackers] [sbase][PATCH] Fix 'w' command not respecting '-s' option

2023-02-08 Thread Andrea Calligaris
--- ed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ed.c b/ed.c index 8a0604e..b661ac5 100644 --- a/ed.c +++ b/ed.c @@ -642,7 +642,8 @@ dowrite(const char *fname, int trunc) strcpy(savfname, fname); modflag = 0; curln = line; - printf("%zu\n

[hackers] [sbase] sed.1: add some missing info

2024-02-29 Thread Andrea Calligaris
There are some features that are coded already, might as well document them. --- sed.1 | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/sed.1 b/sed.1 index 962370e..8b3fe06 100644 --- a/sed.1 +++ b/sed.1 @@ -50,16 +50,32 @@ Append the commands from to th

[hackers] [sbase] tar: fix long names crashing tar archiving

2024-03-03 Thread Andrea Calligaris
It was already mentioned in Dec 2016 here: https://lists.suckless.org/dev/1612/30852.html but never fixed since. *Extracting* long paths was added in May 2022 here: https://lists.suckless.org/hackers/2205/18321.html but not *archiving*. Next thing to do should be supporting links while archiving.

[hackers] [sbase][PATCH] tar: support hardlinks during compression

2024-03-07 Thread Andrea Calligaris
This patch depends on: "tar: fix long names crashing tar archiving" https://lists.suckless.org/hackers/2402/19071.html I just did the simplest possible implementation, in order to have at least something (it's a feature of 'tar' that I do actually use in my projects, so I needed it). Insights for

[hackers] [sbase][PATCH] tar: archive: improve fix for long names crashing

2025-02-24 Thread Andrea Calligaris
As requested, I resend my old patch for fixing the crashing while archiving with names longer than 100 characters. Last patch dealing with the issue: https://lists.suckless.org/hackers/2412/19213.html My old patch: https://lists.suckless.org/hackers/2402/19071.html --- tar.c | 36 +++