zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Surely this can be done easier...
Date: Thu, 25 Dec 2003 00:59:42 +0100	[thread overview]
Message-ID: <20031224235942.GA31039@DervishD> (raw)
In-Reply-To: <1031224214306.ZM12380@candle.brasslantern.com>

    Hi Bart :)

 * Bart Schaefer <schaefer@brasslantern.com> dixit:
> }     I have a file containing a list of files, and I want those files
> } in a command line. The problem is that the filenames contain weird
> } characters, spaces and so on.
> This is pretty close to a FAQ.

    Yes O:) You can see the solution in the Examples of section
'Parameter Expansion' in the manual (well, now that I know what to
look for).
 
> 	$(<listing)
> 	"$(<listing)"
> 	${(f)"$(<listing)"}
> 	command ${(f)"$(<listing)"}

    Oh, I see where was the problem :(( It was entirely my fault. I
was doing more or less the same (I even tried with ps:\n:), but using
$(cat listing) instead of the command substitution. The problem was
that I was using 'print' as the command and I saw the lines without
quoting, of course! What I meant, what I wanted to check, is pressing
Tab and seeing the list of files from 'listing' quoted and put on the
command line. Instead I pressed Enter and, obviously, I saw the
output of 'print', which is all files together with no quoting or
separation.

    The solution, as always, is trying to sleep a bit more :((( Sorry
for the noise and thanks a lot for your answer...

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/


      reply	other threads:[~2003-12-25  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24 21:10 DervishD
2003-12-24 21:43 ` Bart Schaefer
2003-12-24 23:59   ` DervishD [this message]

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=20031224235942.GA31039@DervishD \
    --to=raul@pleyades.net \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /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).