zsh-users
 help / color / mirror / code / Atom feed
* Surely this can be done easier...
@ 2003-12-24 21:10 DervishD
  2003-12-24 21:43 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: DervishD @ 2003-12-24 21:10 UTC (permalink / raw)
  To: Zsh Users

    Hi all :))

    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. Currently I do the following:

    $ while read line ; do array=($array "$line") ; done < listing
    $ command $array

    I've tried things like 'command $(cat listing)', but obviously
they don't work because quoting.

    Can this be done simpler? I think that I made this same question
a time ago, but I haven't found it in the mailing list archive :(

    Thanks a lot in advance and happy holidays (if any) ;))

    Raúl Núñez de Arenas Coronado

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-25  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-24 21:10 Surely this can be done easier DervishD
2003-12-24 21:43 ` Bart Schaefer
2003-12-24 23:59   ` DervishD

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).