From: kutek@cybercomm.net
To: zsh-users@math.gatech.edu
Subject: escaping a colon in a function
Date: Fri, 5 Sep 1997 07:56:54 -0400 (EDT) [thread overview]
Message-ID: <199709051156.HAA05544@kutek.cybercomm.net> (raw)
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.
next reply other threads:[~1997-09-05 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-05 11:56 kutek [this message]
1997-09-05 23:37 Wolfgang Hukriede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199709051156.HAA05544@kutek.cybercomm.net \
--to=kutek@cybercomm.net \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).