Package: sed Version: 4.1.4-2 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, I want to stream edit grub's menu.lst. I want to unlock one specific entry in menu.lst. This file contains several lines whitch match "^lock$" (according to grep). According to sed's info file the s(ubstitute) command accepts an optional flag "number" which determines to substitute only the "number'th" occourence of the pattern. But with tis command line: /bin/sed -e "s/^#*lock/#lock/2" /boot/grub/menu.lst >/tmp/nuk nothing gets substituted, Wheareas with: /bin/sed -e "s/^#*lock/#lock/g" /boot/grub/menu.lst >/tmp/nuk every occurence of "^lock$" gets substituted. This is correct. But: /bin/sed -e "s/^#*lock/#lock/" /boot/grub/menu.lst >/tmp/nuk also substitutes ever occurence of "^lock$". Shouldn't it only substitute the first occurence? Thnis is very easy testable with a file like this: lock lock lock lock lock lock lock lock lock lock lock lock lock lock lock lock lock Perhaps related: I use reportbug (1) to report this bug. First it scans the installation of the package in question. in this case it gave the following output: > Getting status for sed... > Verifying package integrity... > There may be a problem with your installation of sed; > the following files appear to be missing or changed: > > Do you still want to file a report [y|N|q|?]? But there is no file displayed. I reinstalled sed and started reportbug again: Same message. I attach my menu.lst - -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.10-grsec Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages sed depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCHhaR8uuCWtJTB8oRAlNwAJ46ZFP9NXc3MZxAfrGU6FK9D0wsPwCfcI/A V7cRSIWZkYxyj3Ab+e5GqgU= =C2sJ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]