Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
escaping a colon in a function
- X-seq: zsh-users 1002
- From: kutek@xxxxxxxxxxxxx
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: escaping a colon in a function
- Date: Fri, 5 Sep 1997 07:56:54 -0400 (EDT)
hello,
i have read the docs and i have not found therein a way to escape a
colon within a function.
what i am doing is parsing the output of ifconfig to get my currently
active ip address.the ouput of that function is in the form
addr:0.0.0.0
and i am attempting to use the ${name##pattern} construct to remove the
"addr:" from the ultimate output. unfortunately,zsh seems to be interpreting
the colon in the pattern as a delimiter and complains that there is no
closing brace in the function. i have tried both single and double quotes
as well as the backslash to escape the colon's special meaning..to no avail.
Any suggestions? TIA.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author