Zsh Mailing List Archive
Messages sorted by:
Re: Conditional Bug?
- X-seq: zsh-users 12150
- From: jadamson@xxxxxxxxxxxx (Joel J. Adamson)
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Conditional Bug?
- Date: Tue, 30 Oct 2007 11:29:06 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <071029151545.ZM28177@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Mon\, 29 Oct 2007 15\:15\:45 -0700")
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <87fxzuou1b.fsf@xxxxxxxxxxxxxxxxxxxxxxxx> <200710291503.l9TF3Tt9018661@xxxxxxxxxxxxxx> <87zly1onr2.fsf@xxxxxxxxxxxxxxxxxxxxxxxx> <200710291717.l9THHXC2019811@xxxxxxxxxxxxxx> <87ejfdodxp.fsf@xxxxxxxxxxxxxxxxxxxxxxxx> <071029151545.ZM28177@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Oct 29, 4:37pm, Joel J. Adamson wrote:
> } Okay, I've done some more experimenting (including setting the
> } variables to arrays and other things) and discovered that a big
> } problem is that when the filenames get through to the tar command,
> } they are quoted, and thus the tilde does not expand.
> You're being misled. The trace will show them quoted so that cut-and-
> paste will work, even if they weren't quoted originally.
> What you need is not to remove quoting, but to enable file
The problem was that I was treating the filenames the same in the
initial assignment (from the command line) and in the function's
internal assignment. What I needed to do was realize that the first
time it's an array, and the second time it's an expansion of an array:
within the function:
Before invoking the function:
Thanks for all your help!
Joel J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information.
Messages sorted by: