Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: iterating through a hierarchy with a filter
- X-seq: zsh-users 12784
- From: Alexy Khrabrov <deliverable@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: iterating through a hierarchy with a filter
- Date: Mon, 14 Apr 2008 14:39:25 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=bCbsv3QwTL0zu1W8+CHoDbfG7U+Rkafl2IFXG1EIEfQ=; b=pLbrQlt0GVrMI4Exp5W/kPSDdMTxVGYGoARUaJmSz1MfCirGyVj/Ffhp1ZAQphPb5ITnsr7koqgtsYg0Oik8thOyhXnp/KcHvRnUNrgT0w2FI5DrWfU4JnwRsc9anzA9+nkDK6H7RPtGuZv37rhd94DzOF1ffDO9X523Kj9jsIE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=bGqh1GvuEMGZ8glee1W6M4d1EWXqqIFix0zztDn2jKPncP6RR4u85WKYiBEd06ivMI/IaESF7jGbD1j1khD1CfG1Kyb4VTT/aeLHVa22G/DuX4dHY22MinYBpw+5Efh117J6FqOSb5mOiXBQwIq4zG1LU8IeI9B+N0NhzahvrCM=
- In-reply-to: <20080410114214.GB5179@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <8BAD0AA6-3B6F-4946-B636-6C16B56A944E@xxxxxxxxx> <200804100851.m3A8pk9S003521@xxxxxxxxxxxxxx> <DDABD6BC-F3D9-4277-86C1-776B24CB914F@xxxxxxxxx> <20080410105245.GB11585@xxxxxxxxxxxx> <20080410114214.GB5179@xxxxxxxxxxxxxxx>
I have the filter given as a parameter to my script, invoked as
suggested,
$filter < $file1 > $file2
If I give a single existing script as a parameter, it works fine. If,
however, I give it
walk 'iconv -f utf8 -t cp1251' srcdir tgtdir ...
-- I get "command not found" for 'iconv -f utf8 -t cp1251' at the line
above. Since the walk script starts with
#/bin/zsh
filter=$1
I wonder what kind of quoting happens and how to "dequote" it so the
command line will look indeed like
iconv -f utf8 -t cp1251 < $file1 > $file2
E.g., doing filter="$1" doesn't change it.
Cheers,
Alexy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author