Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
turning off backslash expansion
- X-seq: zsh-users 22845
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: turning off backslash expansion
- Date: Mon, 21 Aug 2017 20:08:18 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QrF/MSmqdq5lKdzHMwYb1C7N4J9qFZkAlYqypJ48YEU=; b=Jo7W2Fg1qm5c3Ov8FCNITbZMybO6Bw6sTXrepDEBmhDCkoRNzXQB30nwbdxx5kbIC7 ePFpGY0k3xkB57RTUuxbe8iBE8EU3Mg3NtOp+tg7EqwHQFVIdbM3KGQ2MDf1FsFwb48W WjDVSZFgcWH3AjOJzjDlbXA2DU3ThIr6EF1RbaAWzCIbaZ8Y9eBkDp4EB83tHSB5fQEQ FETP83kBg9O1RQ3v+RgFM3rSH15AttWnIkVpkDVD4AJBUfwjPq2Jxfa40A+f7mZWABc5 uYZR+b9uUhKztSnl6z6yMHgCeuYnggtMhzFsRA7jxz/zmc9MNEBEw77XXXDZa6leDWtb gO7w==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I want to write a zsh function that takes in a windows path and prints out
a unix path from it.
$ myfunc c:\Users\userblah\Desktop\myfile.txt
/c/Users/userblah/Desktop/myfile.txt
The problem is that when I'm using the function, zsh already tried to
interpret the backslash as a escape for the next char. How do I momentarily
turn this off so that I can perform my sed regex on the $1 variable?
thanks in advance,
Filipe.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author