From owner-freebsd-questions@FreeBSD.ORG Tue Aug 24 11:32:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60E2A16A4CE for ; Tue, 24 Aug 2004 11:32:07 +0000 (GMT) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1DA143D3F for ; Tue, 24 Aug 2004 11:32:06 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.1/8.13.1) with ESMTP id i7OBW6wm005546 for ; Tue, 24 Aug 2004 05:32:06 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.1/8.13.1/Submit) with ESMTP id i7OBW6iT005543; Tue, 24 Aug 2004 05:32:06 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 24 Aug 2004 05:32:06 -0600 (MDT) From: Warren Block To: "Gerald S. Stoller" In-Reply-To: Message-ID: <20040824052652.S5488@wonkity.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (wonkity.com [127.0.0.1]); Tue, 24 Aug 2004 05:32:06 -0600 (MDT) cc: freebsd-questions@freebsd.org Subject: Re: The printf function X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 11:32:07 -0000 On Tue, 24 Aug 2004, Gerald S. Stoller wrote: > I executed the following printf (in a Korn shell command-line) > printf 't %2$s .\n' 3 55 > and got the following response > printf: illegal format character $ > > The following is an excerpt from the man-3 page for printf . 'man 3 printf' shows the man page for the C library function printf. 'man 1 printf' shows the man page for the printf *program*, which does not appear to support the $ format string. -Warren Block * Rapid City, South Dakota USA