From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2761 invoked from network); 3 Mar 1997 15:00:23 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 3 Mar 1997 15:00:23 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA22792; Mon, 3 Mar 1997 09:48:06 -0500 (EST) Resent-Date: Mon, 3 Mar 1997 09:44:53 -0500 (EST) From: gwing@primenet.com.au Message-ID: <19970303144653.2708.qmail@primenet.com.au> Subject: Re: very weird echo problem In-Reply-To: <9703031155.AA02450@tallowcross.uni-frankfurt.de> from Uli Zappe at "Mar 3, 97 12:55:37 pm" To: uli@tallowcross.uni-frankfurt.de (Uli Zappe) Date: Tue, 4 Mar 1997 01:46:53 +1100 (EST) Cc: zsh-users@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: application/pgp; format=text; x-action=sign Content-Transfer-Encoding: 7bit Resent-Message-ID: <"HIhoS2.0.gW5.aFk6p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/736 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu -----BEGIN PGP SIGNED MESSAGE----- Uli Zappe wrote: :Peter Stephenson wrote: :> Hmm, you can't be telling us everything since TEST1 and TEST2 :> are passed as positional parameters, which don't get used by :> log_function. How does $MESSAGE get set? Can you produce an :> actual minimal script which shows this? : :Oops, sorry, I got a bit too schematic ;-) :It must read: : log_function() : { : DATE=$(date) : echo $1 : echo $1 >> $LOGFILE : } : log_function TEST1; log_function TEST2 : log_function TEST3; log_function TEST4 : :In the actual script, $DATE is included in the second echo (to the :logfile), but the effects I describe are reproducible also the way :that I have notated log_function here. Can you produce more of the script? There isn't enough there to determine what the problem is. I produced no problems from a cron job or via other non-tty specific methods either with 2.5.03 or 3.* Thanks - -- Geoff Wing [mason@primenet.com.au] Technical Manager Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy Facsimile: +61-3-9819 3788 Web : Mobile : 0412 162 441 -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBMxrj8+kZdFsUTaLFAQHqAwP/Z7vBd32ecuRspcztLOrx3QOiApJrTVZq LqQsjR3H7yP5PE92cO0u9/JksoGrM5wGmhOMdHQlKWWZDaeS84MU6NH7r4yvzH/e Xybq8f37EFKiTcmydfFu6txAqkeeKVFiNS90ag96lZmMwHUEXw8Hvxuyo590oiFr 5YsI44XXucY= =EjNL -----END PGP SIGNATURE-----