Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 1997 01:19:29 +0100 (CET)
From:      Robert Eckardt <roberte@MEP.Ruhr-Uni-Bochum.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2969: csh and/or builtin printf has problems with embedded commands
Message-ID:  <199703130019.BAA04142@ghost.mep.ruhr-uni-bochum.de>
Resent-Message-ID: <199703130030.QAA22052@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703130019.BAA04142>