Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.16 $; site prism.UUCP Path: utzoo!linus!decvax!cca!prism!matt From: matt@prism.UUCP Newsgroups: net.unix-wizards Subject: Pointless csh puzzle Message-ID: <13700003@prism.UUCP> Date: Thu, 18-Jul-85 17:13:00 EDT Article-I.D.: prism.13700003 Posted: Thu Jul 18 17:13:00 1985 Date-Received: Tue, 20-Aug-85 00:25:23 EDT Lines: 25 Nf-ID: #N:prism:13700003:000:1040 Nf-From: prism!matt Jul 18 17:13:00 1985 Here's a pointless little csh puzzle: In the c-shell, it is possible to set and environment variable whose name consist of more than one word, in the obvious way: % setenv "FOO BAR" quux The printenv builtin will show it residing happily in the environment. Now for the puzzle: can anyone find a way to GET TO the value of this variable, using only csh builtins? In other words, is there ansuch that % echo will print "quux" on the screen, where is formed only from csh commands? As a bonus question, can anyone figure out how to successfully invoke the Bourne shell (sh) after doing the above setenv? (Without using unsetenv!) ----------------------------------------------------------------------------- Matt Landau {cca, datacube, ihnp4, inmet, mit-eddie, wjh12}... Mirror Systems, Inc. ...mirror!prism!matt ----------------------------------------------------------------------------- "Replace this mandolin with your wombat..."