From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4050 invoked from network); 14 Jun 1998 05:06:28 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Jun 1998 05:06:28 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id AAA26343; Sun, 14 Jun 1998 00:56:04 -0400 (EDT) Resent-Date: Sun, 14 Jun 1998 00:54:15 -0400 (EDT) Message-ID: <002801bd9750$a021f600$cde8ec82@a205.ryd.student.liu.se> From: "=?iso-8859-1?Q?Johan_Sundstr=F6m?=" To: "Zsh-list" Subject: Static variables? Date: Sun, 14 Jun 1998 06:55:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Resent-Message-ID: <"8s5oQ2.0.XQ6.qTrWr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1614 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Is it possible to use c-style "static" variables in my functions, or do I have to stick to global ones? My precmd function doesn't get too happy when its variables are tampered with, and it's quite slow enough as it is without sanitytests. Having some variables accessable only from a certain function (precmd in this case) would help a lot and unclutter the huge list of global variables a bit, while at it. If it's possible, how is it done? /Johan Sundström