Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is this the Zsh way for doing this?
- X-seq: zsh-users 7284
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Is this the Zsh way for doing this?
- Date: Sun, 28 Mar 2004 21:00:01 +0000
- In-reply-to: <20040328200756.GB6311@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040325223228.GA13221@DervishD> <1040328005531.ZM19873@xxxxxxxxxxxxxxxxxxxxxxx> <1040328010324.ZM19900@xxxxxxxxxxxxxxxxxxxxxxx> <20040328200756.GB6311@DervishD>
On Mar 28, 10:07pm, DervishD wrote:
}
} Thanks a lot for your answer :)
No problem; you're welcome.
} > # At this point you might also want to clean wildcards and slashes
} > # out of $track_name, but that's up to you. Your original doesn't.
}
} No, it doesn't because I didn't thought of it :( Thanks for
} pointing. Could it be solved using the (q) flag or should I use ${//}
} and substitute every dangerous character for a safe version?
The substituion is necessary for slashes, because you can't even create a
file with slashes in the name.
The (q) flag is _not_ necessary for other metacharacters when creating
the file (the argument to "mv" is already double-quoted); the problem
would be with manipulating the names later. So doing either nothing or
the substitution is appropriate in that case.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author