Package: sed
Version: 4.1.5-1
Severity: minor

As far as I know, GNU sed (and other sed implementations) allow a
semicolon to be used instead of a newline character, as a command
terminator.  This feature is pretty important, since without the
semicolon alternative all complex sed one-liners must be written with a
slew of -e options.

However, the possibility of using semicolons in not mentioned on sed's
man page nor in its info document.  Instead, both insist that every
command must be on its own line.  Some examples in the info document use
semicolons, but not everybody reads just those examples that do.  In my
opinion, this is a severe bug in the documentation of sed.

Interestingly, many other implementations of sed have exactly the same
problem: semicolon works as a command terminator, but the documentation
fails to mention that.  Hopefully GNU sed will be better in this aspect.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages sed depends on:
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries

sed recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to