From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9366 invoked from network); 5 Sep 1997 12:05:36 -0000 Received: from math.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 5 Sep 1997 12:05:36 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id HAA06046; Fri, 5 Sep 1997 07:58:30 -0400 (EDT) Resent-Date: Fri, 5 Sep 1997 07:58:01 -0400 (EDT) From: kutek@cybercomm.net Message-Id: <199709051156.HAA05544@kutek.cybercomm.net> Subject: escaping a colon in a function To: zsh-users@math.gatech.edu Date: Fri, 5 Sep 1997 07:56:54 -0400 (EDT) X-Mailer: ELM [version 2.4 PL25 PGP3 *ALPHA*] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Resent-Message-ID: <"A0tg31.0.tT1.8F_3q"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1002 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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.