From owner-freebsd-questions@FreeBSD.ORG Sun Feb 15 13:58:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C58921065670 for ; Sun, 15 Feb 2009 13:58:01 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from smtp115.rog.mail.re2.yahoo.com (smtp115.rog.mail.re2.yahoo.com [68.142.225.231]) by mx1.freebsd.org (Postfix) with SMTP id 51FE08FC17 for ; Sun, 15 Feb 2009 13:58:00 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: (qmail 4572 invoked from network); 15 Feb 2009 13:58:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=IxcoridUC5HWWOmYBK1UDA5dcSKdTJFOCwbIFDgS0ZXGK1A7zagiAvnDOxUpNa+CtrKOWgQ6018wC9o+yZoB9tBT6+AcJk0F6CdKjD+i+VNONh0SjfPHxjXd78FOH8vfkkNnhoe16vTa/9HqpPZd1EeiV9sqo5Y5BM/mAtmIYdY= ; Received: from unknown (HELO napoleon.localnet) (mike.jeays@99.224.75.182 with plain) by smtp115.rog.mail.re2.yahoo.com with SMTP; 15 Feb 2009 13:58:00 -0000 X-YMail-OSG: K0Xp5OIVM1kyhjLivDywmo77nmHdOuITmLjeOI3VC00sJ3.k80FfR2wEq2BadvtHPw-- X-Yahoo-Newman-Property: ymail-3 From: Mike Jeays To: freebsd-questions@freebsd.org Date: Sun, 15 Feb 2009 08:57:58 -0500 User-Agent: KMail/1.10.3 (Linux/2.6.27-11-generic; KDE/4.1.3; i686; ; ) References: <18838.52454.185642.297737@jerusalem.litteratus.org> <59adc1a0902142226ueb6e878h51076eec2cc58609@mail.gmail.com> In-Reply-To: <59adc1a0902142226ueb6e878h51076eec2cc58609@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902150857.58603.mike.jeays@rogers.com> Subject: Re: OT: sed + exit status X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 13:58:02 -0000 On February 15, 2009 01:26:27 am Dimitar Vasilev wrote: > > . Is sed "successful" is there are no instances of FOO? Or > > only if there is at least one instance of FOO and it is successfully > > replaced by bar? > > > > Respectfully, > > > > > > Robert Huff > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > Hi Robert, > try to use truss or strace to see the exit codes in both cases. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Both cases return an exit code of '0'. You can check more easily by putting the command 'echo $?' directly after the sed command.