home *** CD-ROM | disk | FTP | other *** search
- Organization: Freshman, MCS general, Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!dw3u+
- Newsgroups: comp.unix.shell
- Message-ID: <Ef3iPSy00aw40OtpQi@andrew.cmu.edu>
- Date: Sat, 21 Nov 1992 20:48:14 -0500
- From: "Daniel C. Wang" <dw3u+@andrew.cmu.edu>
- Subject: Static Variables
- Lines: 7
-
-
- Is there anyway to save the value of a variable in a shell script so
- that it behaves like a C static variable. i.e. each invocation of the
- shell script retains the value of the variable.
-
- I've kludge together a method using temp files, but I'm sure there is
- a more elegant way to do this.
-