From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 11:42:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A45F16A400 for ; Fri, 2 Feb 2007 11:42:51 +0000 (UTC) (envelope-from tigger@lilypie.com) Received: from lilypie.com (lilypie.com [67.18.129.234]) by mx1.freebsd.org (Postfix) with SMTP id E7FDB13C4A3 for ; Fri, 2 Feb 2007 11:42:48 +0000 (UTC) (envelope-from tigger@lilypie.com) Received: (qmail 41456 invoked by uid 1001); 2 Feb 2007 11:11:56 -0000 Date: Fri, 2 Feb 2007 22:11:56 +1100 From: Tigger To: freebsd-questions@freebsd.org Message-ID: <20070202111156.GA41151@lilypie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: unexpected result from sh script with `date` 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: Fri, 02 Feb 2007 11:42:51 -0000 Hello, the following simply sh script is outputting unexpected results. Any idea why? --script-- #!/bin/sh started=`date` echo "Started at: $started" echo "Finished : "`date` exit --output-- Started at: Fri Feb 2 22:13:51 EST 2007 Finished : Fri Feb 2 22:13:51 EST 2007 --problem-- Between 'Feb' and '2', there is two spaces on the 'Started at' line, however the 'Finished' one only has 1 space. I know this sounds picky, but I was not expecting this at all. uname -a FreeBSD piglet 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 19 04:13:20 EST 2007 tigger@piglet:/usr/obj/usr/src/sys/PIGLET i386 -Tig