home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!crchh327!tdoan
- From: tdoan@bnr.ca (Tuan Doan)
- Subject: Help on reading shell variable/environment
- Message-ID: <1992Dec15.204940.15394@bnr.ca>
- Keywords: TCL/TK,variable,environment,shell
- Sender: news@bnr.ca (News on crchh327)
- Nntp-Posting-Host: crchh404
- Organization: Bell-Northern Research, Richardson, Tx.
- Date: Tue, 15 Dec 1992 20:49:40 GMT
- Lines: 25
-
- Hello,
-
- Does anyone know of a way to read shell variable or environment variable
- inside TCL/TK? I need to access the TERM variable so that to prevent my
- TCL/TK program from being run when the user is not in an X window environment.
-
- Also, is there an easy way to implement set operations in TCL/TK? For example,
-
- set lista [list a b c]
- set listb [list b c d]
- set listc [and lista listb] -> listc={b,c}
- set listd [or lista listb] -> listd={a,b,c,d}
-
- One of the nifty functionality that TCL/TK provides is list. Unfortunately,
- no logic's operators on it.
-
- Regards,
-
- __ __/ / / __ / | / Tuan T. Doan
- / / / / / / | / Advance Signalling Design
- / / / __ / / | / 2201 Lakeside Blvd. P.O. Box 833871
- __/ ______/ __/ __/ __/ __/ Richardson, TX 75083-3871
- Phone: 6-444-4575/214-684-4575
- Internet: tdoan@bnr.ca Fax: 6-444-3716/214-684-3716
- or tdoan@x400gate.bnr.ca
-