From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5386 invoked by alias); 20 Feb 2012 18:23:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16773 Received: (qmail 3382 invoked from network); 20 Feb 2012 18:23:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.22 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX18tIYFhA0wt8XAiF4FOd3N/p9wiooZHypWFK3PM9l e/Sj11vk6lACnq Date: Mon, 20 Feb 2012 19:16:50 +0100 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: somehow offtopic: looping filenames Message-ID: <20120220181650.GA11514@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 Hi, how can I do this in a most compact, direct, and zsh like way: I habe a loop like this: for fn * do flac $fn done Unfortunately, some file have 'illegal' filenames like 20120220-_-19db.wav or 20120220 sensor10 up.wav which parts flac sees as unknown commmand options or as two file and the loop fails. How do I have to modifiy the loop to make it immune against such filenames ? Thank you very much in advance for any help! Best regards mcc