home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!stanford.edu!casbs!casbs.Stanford.EDU!patrick
- From: patrick@casbs.Stanford.EDU (Patrick Goebel)
- Subject: switch/case question under csh
- Message-ID: <PATRICK.93Jan7155500@casbs.Stanford.EDU>
- Sender: news@casbs.Stanford.EDU (CASBS News Service)
- Organization: Center for Advanced Study in the Behavioral Sciences
- Distribution: comp
- Date: Thu, 7 Jan 1993 23:55:00 GMT
- Lines: 25
-
- In a switch statement under csh, I need a case that traps the [
- character (among others). However, all the case statements I have
- tried yield a "Missing ]" error. Here's what I've tried so far:
-
- case "[":
- case "\[":
- case \[:
- case "[[]":
- case "[\[]":
- case "'['":
- case '[':
-
- Does anyone know the magic incantation that quotes the [? I need to
- do the same thing with some other "trouble" characters like * and _
- (underscore).
-
- Thanks in advance for any pointers.
-
- Cheers,
- patrick
- --
- Patrick Goebel E-MAIL: patrick@casbs.Stanford.EDU
- Network Administrator VOICE: (415) 321-2052
- CASBS, 202 Junipero Serra Blvd. FAX: (415) 321-1192
- Stanford, CA 94305 BEEPER: Temporarily Out of Order...
-