From owner-freebsd-bugs Fri Aug 9 03:20:11 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA29416 for bugs-outgoing; Fri, 9 Aug 1996 03:20:11 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA29391; Fri, 9 Aug 1996 03:20:05 -0700 (PDT) Resent-Date: Fri, 9 Aug 1996 03:20:05 -0700 (PDT) Resent-Message-Id: <199608091020.DAA29391@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, lkoeller@odie.physik2.uni-rostock.de Received: from odie.physik2.uni-rostock.de (odie.physik2.uni-rostock.de [139.30.40.28]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA29193 for ; Fri, 9 Aug 1996 03:17:35 -0700 (PDT) Received: (from lkoeller@localhost) by odie.physik2.uni-rostock.de (8.7.5/8.7.3) id MAA06786; Fri, 9 Aug 1996 12:17:29 +0200 (MET DST) Message-Id: <199608091017.MAA06786@odie.physik2.uni-rostock.de> Date: Fri, 9 Aug 1996 12:17:29 +0200 (MET DST) From: lkoeller@odie.physik2.uni-rostock.de Reply-To: lkoeller@odie.physik2.uni-rostock.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1481: Bug in sed in 2.1.5-RELEASE Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1481 >Category: bin >Synopsis: Error in sed branch or label command >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 9 03:20:02 PDT 1996 >Last-Modified: >Originator: Lars Koeller >Organization: University of Rostock, Germany >Release: FreeBSD 2.1.5 i386 >Environment: FreeBSD-2.1.5 RELEASE >Description: The error first occured after an upgrade from 2.1.0R to 2.1.5R the faces.sendmail sed script didn't work anymore and leads to an error message of "sed: 1: "b copy": undefined label 'copy'". The gsed-2.05 still works with the script. The faces.sendmail script is an small sed script which inserts a X-Face: line into the outgoing mail. The errors seems to be generic. >How-To-Repeat: 1. Install faces.sendmail in /usr/local/bin vith mode 0555 ######## faces.sendmail ####### #!/bin/sh # # @(#)faces.sendmail 1.4 91/05/06 # # Small script to automatically add X-Face: compressed image lines to a # mail message header. This shell script should be run by adding a line # similar to: # # set sendmail=/usr/local/bin/faces.sendmail # # to your ~/.mailrc file. See the faces manual pages for more details, and # how to setup yout ~/.face file. # # Copyright 1990, 1991 John J. Mackin. All rights reserved. # # Permission is given to distribute these sources, as long as the # copyright messages are not removed, and no monies are exchanged. # # No responsibility is taken for any errors or inaccuracies inherent # either to the comments or the code of this program, but if # reported to me then an attempt will be made to fix them. # cat $HOME/.face - | sed -n \ -e '1s/^/X-Face:/' \ -e 1h \ -e 1d \ -e '/^[ ]/{H;d;}' \ -e ': copy0' \ -e '/^$/!{p;n;}' \ -e '/^$/!b copy0' \ -e g \ -e p \ -e 'a\ ' \ -e n \ -e ': copy' \ -e p \ -e n \ -e 'b copy' | /usr/sbin/sendmail "$@" ######### End of faces.sendmail ############ 2. Insert a line set sendmail=/usr/local/bin/faces.sendmail in the .mailrc file in your home directory. 3. Put a .face file in your home Directory like this one ########## .face file ############ nLQGe[[K51[{{[C\,BiQm[7]u1m{N>_\%nLBo4t@)CoZ}hK[W7DwX&V=}Wf#Qb,j:Jpj[(12r=b~:dYmh]fDf\, ]_frt6eMFix: Use gesd-2.05 or the sed binary out of the 2.1.0R distribution >Audit-Trail: >Unformatted: