mtsu@blake.acs.washington.edu (Montana State) (07/24/89)
Huh? What's going on here? I'm trying to set the shell variable x to the contents of the file /tmp/x, here's a script. mVAX II, Ultrix 2.3, /bin/csh Script started on Mon Jul 24 03:13:58 1989 caesar # set argv () cwd /user1/local/src/libg++/tests history 200 home / notify ^G path (/etc /usr/etc /user /graphics/bin /etc /usr/etc /user /graphics/bin /user1/icsu6000/com . /usr/ucb /bin /usr/bin /usr/local/bin /user /usr/local/bin/graphics /usr/etc /usr/local/bin //bin /user1/icsu6000/com /usr/local/bin //bin /user1/icsu6000/com) prompt caesar # shell /bin/csh status 0 term screen user icsu6000 caesar # cat /tmp/x tBag* tBag2* tBitSet* tBitString* tComplex* tCurses* tDeque* tFile* tFix* tFix16* tFix24* tInteger* tLList* tList* tMap* tObstack* tPQ* tPlex* tQueue* tRandom* tRational* tSet* tSet2* tStack* tString* tVec* test0* tgwrapper* twrapper* caesar # set x=`cat /tmp/x` caesar # echo $x tBag tBag.cc tBag.o tBag2 tBag2.cc tBag2.o tBag2 tBag2.cc tBag2.o tBitSet tBitSet.cc tBitSet.o tBitString tBitString.cc tBitString.o tComplex tComplex.cc tComplex.o tCurses tCurses.cc tCurses.o tDeque tDeque.cc tDeque.o tFile tFile.cc tFile.o tFix tFix.cc tFix.o tFix16 tFix16.cc tFix16.o tFix24 tFix24.cc tFix24.o tFix16 tFix16.cc tFix16.o tFix24 tFix24.cc tFix24.o tInteger tInteger.cc tInteger.o tLList tLList.cc tLList.o tList tList.cc tList.o tMap tMap.cc tMap.o tObstack tObstack.cc tObstack.o tPQ tPQ.cc tPQ.o tPlex tPlex.cc tPlex.o tQueue tQueue.cc tQueue.o tRandom tRandom.cc tRandom.o tRational tRational.cc tRational.o tSet tSet.cc tSet.o tSet2 tSet2.cc tSet2.o tSet2 tSet2.cc tSet2.o tStack tStack.cc tStack.o tString tString.cc tString.o tVec tVec.cc tVec.o test0 test0.h tgwrapper tgwrapper.cc tgwrapper.o twrapper twrapper.cc twrapper.o caesar # pwd /user1/local/src/libg++/tests caesar # ^D script done on Mon Jul 24 03:14:50 1989 Somehow a directory listing is getting in there...
grr@cbmvax.UUCP (George Robbins) (07/24/89)
In article <2917@blake.acs.washington.edu> mtsu@blake.UUCP (Montana State) writes: > Huh? What's going on here? I'm trying to set the shell variable x to > the contents of the file /tmp/x, here's a script. > Somehow a directory listing is getting in there... set noglob set x=`cat /tmp/x` unset noglob one of those little csh rituals 8-) -- George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr but no way officially representing arpa: cbmvax!grr@uunet.uu.net Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
mtsu@blake.acs.washington.edu (Montana State) (07/25/89)
In article <2917@blake.acs.washington.edu> mtsu@blake.UUCP (Montana State) writes: >Huh? What's going on here? I'm trying to set the shell variable x to >the contents of the file /tmp/x, here's a script. > >mVAX II, Ultrix 2.3, /bin/csh > > >Script started on Mon Jul 24 03:13:58 1989 >caesar # set >argv () >cwd /user1/local/src/libg++/tests >history 200 >home / >notify ^G Arrrgh! I can't believe I did something this stupid! That's what I get for aliasing ls to ls -F . That's what was aggravating, log into a different account and it works beautifully. For penance I shall eat section 1 of the manual set, with an extra copy of csh(1) thrown in for good measure. Dumb Dumb Dumb Thanx for the help. Jaye Mathisen icsu6000@caesar.cs.montana.edu