Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

turning off backslash expansion



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