zsh-workers
 help / color / mirror / code / Atom feed
From: bas@phys.uva.nl (Bas V. de Bakker)
To: sverre@research.nokia.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: Strange behaviour in zsh-2.5.03
Date: Mon, 11 Dec 1995 10:08:26 +0100	[thread overview]
Message-ID: <199512110908.AA23443@phys.uva.nl> (raw)
In-Reply-To: <9512110844.AA02049@nike.spices> (sverre@research.nokia.com)

Sverre Slotte <sverre@research.nokia.com> 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.


  reply	other threads:[~1995-12-11  9:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-11  8:44 Sverre Slotte
1995-12-11  9:08 ` Bas V. de Bakker [this message]
1995-12-11  9:52 ` P.Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199512110908.AA23443@phys.uva.nl \
    --to=bas@phys.uva.nl \
    --cc=sverre@research.nokia.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).