From owner-freebsd-bugs Wed Mar 12 16:30:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA22061 for bugs-outgoing; Wed, 12 Mar 1997 16:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA22052; Wed, 12 Mar 1997 16:30:02 -0800 (PST) Resent-Date: Wed, 12 Mar 1997 16:30:02 -0800 (PST) Resent-Message-Id: <199703130030.QAA22052@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, roberte@MEP.Ruhr-Uni-Bochum.de Received: from ghost.mep.ruhr-uni-bochum.de (ghost.mep.ruhr-uni-bochum.de [134.147.6.16]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA21654 for ; Wed, 12 Mar 1997 16:21:00 -0800 (PST) Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.8.4/8.8.4) id BAA04142; Thu, 13 Mar 1997 01:19:29 +0100 (CET) Message-Id: <199703130019.BAA04142@ghost.mep.ruhr-uni-bochum.de> Date: Thu, 13 Mar 1997 01:19:29 +0100 (CET) From: Robert Eckardt Reply-To: roberte@MEP.Ruhr-Uni-Bochum.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2969: csh and/or builtin printf has problems with embedded commands Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2969 >Category: bin >Synopsis: csh and/or builtin printf has problems with embedded commands >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 16:30:01 PST 1997 >Last-Modified: >Originator: Robert Eckardt >Organization: Home sweet home >Release: FreeBSD 2.2-BETA_A i386 >Environment: FreeBSD-2.2 with X11R6-3.2 >Description: printf with a shell command as its argument prints wrong results. Happens only for builtin printf in /usr/bin/csh. >How-To-Repeat: ghost: {1} wc -l fonts.scale | cut -c-9 105 ghost: {2} printf '%d\n' 105 105 ghost: {3} printf '%d\n' `wc -l fonts.scale | cut -c-9` 96 ghost: {4} /usr/bin/printf '%d\n' `wc -l fonts.scale | cut -c-9` 105 >Fix: ??? >Audit-Trail: >Unformatted: