VOOZH about

URL: https://pkgsrc.se/textproc/gsed

⇱ pkgsrc.se | The NetBSD package collection


Skip to main content.
👁 https://pkgsrc.se
Useful links: www.pkgsrc.org | www.netbsd.org | www.netbsd.se
Navigation:
Home | Browse by maintainer | Search | RSS | Info | Statistics | Help | Contact
+ virtual
archivers
audio
benchmarks
biology
cad
chat
comms
converters
cross
crosspkgtools
databases
devel
doc
editors
emulators
filesystems
finance
fonts
games
geography
graphics
ham
inputmethod
lang
mail
math
mbone
meta-pkgs
misc
multimedia
net
news
parallel
pkgtools
print
regress
security
shells
sysutils
👁 pil
 textproc
  👁 pil
 gsed
time
wayland
wip
wm
www
x11

* = Virtual Category
👁 new
New packages:
  Today
  Yesterday
  Last week
  Last month

Path to this page:

./textproc/gsed, GNU implementation of sed, the POSIX stream editor

[ 👁 Image
CVSweb ] [ 👁 Image
Homepage ] [ 👁 Image
RSS ] [ 👁 Image
Required by ]


Branch: CURRENT, Version: 4.10, Package name: gsed-4.10, Maintainer: pkgsrc-users

GNU implementation of the POSIX stream editor `sed'.

Sed (streams editor) isn't really a true text editor or text
processor. Instead, it is used to filter text, i.e., it takes text
input and performs some operation (or set of operations) on it and
outputs the modified text. Sed is typically used for extracting part
of a file using pattern matching or substituting multiple occurrences
of a string within a file.



Package options: nls

Master sites: (Expand)

Filesize: 1692.188 KB

Version history: (Expand)


CVS history: (Expand)


   2026-05-13 08:02:27 by Thomas Klausner | Files touched by this commit (7) | 👁 Package updated
Log message:
gsed: update to 4.10.

* Noteworthy changes in release 4.10 (2026-04-21) [stable]

** Bug fixes

 sed 's/a/b/g' (and other global substitutions) now works on input
 lines longer than 2GB. Previously, matches beyond the 2^31 byte offset
 would evoke a "panic" (exit 4).
 [bug present since the beginning]

 'sed --follow-symlinks -i' no longer has a TOCTOU race that could let
 an attacker swap a symlink between resolution and open, causing sed to
 read attacker-chosen content and write it to the original target.
 [bug introduced in sed 4.1e]

 sed no longer falsely matches when back-references are combined with
 optional groups (.?) and the $ anchor. For example, this no longer
 falsely matches the empty string at beginning of line:
 $ echo ab | sed -E 's/^(.?)(.?).?\2\1$/X/'
 Xab
 [bug present since "the beginning"]

 In --posix mode, sed no longer mishandles backslash escapes (\n,
 \t, \a, etc.) after a named character class like [[:alpha:]].
 For example, 's/^A\n[[:alpha:]]\n*/XXX/' would fail to match the
 trailing newline, treating \n as a literal backslash and an 'n'
 rather than a newline. This happened when an earlier backslash
 escape in the same regex had already been converted, shifting the
 in-place normalization buffer.
 [bug introduced in sed 4.9]

 sed --debug no longer crashes when a label (":") command is compiled
 before the --debug option is processed, e.g., sed -f<(...) --debug.
 [bug introduced in sed 4.7 with --debug]

 sed no longer rejects the documented GNU extension 'a**' (equivalent
 to 'a*') in Basic Regular Expression (BRE) mode. Previously, this
 worked only with -E (ERE mode), even though grep has always accepted
 it in BRE mode.
 [bug present since "the beginning"]

 sed no longer rejects "\c[" in regular expressions
 [bug present since the beginning]

 'sed --follow-symlinks -i' no longer mishandles an operand that is a
 short symbolic link to a long symbolic link to a file.
 [bug introduced in sed 4.9]

 Fix some some longstanding but unlikely integer overflows.
 Internally, 'sed' now more often prefers signed integer arithmetic,
 which can be checked automatically via 'gcc -fsanitize=undefined'.

** Changes in behavior

 In the default C locale, diagnostics now quote 'like this' (with
 apostrophes) instead of `like this' (with a grave accent and an
 apostrophe). This tracks the GNU coding standards.

 'sed --posix' now warns about uses of backslashes in the 's' command
 that are handled by GNU sed but are not portable to other
 implementations.

** Build-related

 builds no longer fail on platforms without the <getopt.h> header or
 getopt_long function.
 [bug introduced in sed 4.9]
   2026-04-10 11:50:52 by Jonathan Perkin | Files touched by this commit (2)
Log message:
gsed: Fix broken gnulib.
   2026-03-25 23:48:39 by Thomas Klausner | Files touched by this commit (2)
Log message:
gsed: remove separate man page download

tarball includes a copy
   2025-10-05 13:59:43 by Jonathan Schleifer | Files touched by this commit (4)
Log message:
textproc/gsed: Fix building on QNX
   2024-05-02 00:44:09 by Aleksey Cheusov | Files touched by this commit (1)
Log message:
Remove ../../devel/gettext-lib from Makefile, it is a part of options.mk
   2024-05-02 00:36:30 by Aleksey Cheusov | Files touched by this commit (3)
Log message:
Add option "nls" enabled by default
   2023-05-19 16:12:18 by Jonathan Perkin | Files touched by this commit (2)
Log message:
gsed: Fix build on SunOS/i386.
   2023-05-10 22:40:47 by Amitai Schleier | Files touched by this commit (3)
Log message:
Conditionalize more fully whether sed.1 is generated. Fixes regular
build on at least FreeBSD 13.x, and confirmed to build (both forks
of the conditional) on NetBSD and macOS.


This site is operated by pkgsrc.pub, Contact