zsh-users
 help / color / mirror / code / Atom feed
From: Wolfgang Hukriede <whukriede@ifm.uni-kiel.de>
To: zsh-users@math.gatech.edu, kutek@cybercomm.net
Subject: Re: escaping a colon in a function
Date: Sat, 6 Sep 1997 01:37:26 +0200 (MET DST)	[thread overview]
Message-ID: <199709052337.BAA28775@sally.ifm.uni-kiel.de> (raw)


zsh-3.0.2> x=addr:0.0.0.0
zsh-3.0.2> echo ${x##addr:}
0.0.0.0

apparently works. No escaping of the colon is necessary at all.

Greetings, Wolfgang.

--
kutek@cybercomm.net wrote:
>  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.


             reply	other threads:[~1997-09-05 23:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-05 23:37 Wolfgang Hukriede [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-09-05 11:56 kutek

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=199709052337.BAA28775@sally.ifm.uni-kiel.de \
    --to=whukriede@ifm.uni-kiel.de \
    --cc=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).