From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with ESMTP id UAA28114 for ; Mon, 11 Dec 1995 20:32:17 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id EAA14810; Mon, 11 Dec 1995 04:09:14 -0500 (EST) Resent-Date: Mon, 11 Dec 1995 04:09:14 -0500 (EST) Message-Id: <199512110908.AA23443@phys.uva.nl> Date: Mon, 11 Dec 1995 10:08:26 +0100 To: sverre@research.nokia.com Cc: zsh-workers@math.gatech.edu In-Reply-To: <9512110844.AA02049@nike.spices> (sverre@research.nokia.com) Subject: Re: Strange behaviour in zsh-2.5.03 From: bas@phys.uva.nl (Bas V. de Bakker) Resent-Message-ID: <"42D1e3.0.Kd3.vK_om"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/685 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sverre Slotte writes: > passthru="$passthru $1" ^ It's this space that gets in the way. The passthru variable will consist of the filename with a space added to the end, which makes a new filename that does not exist. Similarly, if you have more files, they will all become a single argument in the following command, being interpreted as a single file name. > command lpr -P${printer} ${passthru} # this doesn't work! As long as you don't have filenames which themselves contain whitespace, replacing ${passthru} with ${=passthru} should do the job, as this will split the variable into different words. Hope this helps. Bas.