home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aux / 3312 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.9 KB  |  51 lines

  1. Newsgroups: comp.unix.aux
  2. Path: sparky!uunet!world!rhs
  3. From: rhs@world.std.com (Richard H Schwartz)
  4. Subject: Re: csh is screwed up
  5. Message-ID: <BtvByF.I58@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <1992Aug27.171503.794@colorado.edu> <1992Aug29.085228.2232@panix.com> <1992Aug31.171710.2035@colorado.edu>
  8. Date: Mon, 31 Aug 1992 22:03:51 GMT
  9. Lines: 40
  10.  
  11. powellb@samwise.colorado.edu (Brian Powell) writes:
  12.  
  13. >There, everything is explicit, and should work for everybody.  However, it will
  14. >only work on my A/UX 3.0, Mac IIfx, with 16 megs erratically.  I ran it 10 times, consecutively, and it worked 3 out of the ten.  The others, it never
  15. >executed the pwd command.  I ran it both under csh and tcsh with the same
  16. >results.  I realize that this should work for everybody; however, has anyone
  17. >else had this problem or resolved a similar one?
  18.  
  19. Works find on my machine, too.  I have, however, seen pwd get confused when
  20. the current directory is a symbolic-linked directory from a remote-mounted
  21. volume to remote-remote-mounted volume.  Is there any pattern at all regarding
  22. what directory you are in when it works and when it doesn't?
  23.  
  24. One last stab... 
  25. ==========================
  26. mv /bin/pwd /bin/pwdx
  27.  
  28. create a new script /bin/pwd
  29.  
  30. #!/bin/sh
  31. # brain-damage detector
  32. echo -n /foo/bar/ | tee -a $HOME/pwd.foobar
  33. /bin/pwdx | tee -a $HOME/pwd.foobar
  34.  
  35. chmod +x /bin/pwdx
  36. ==========================
  37.  
  38. The question: is pwd not generating any output, or is csh not getting
  39. it?  Your script should always see at least the "/foo/bar", even if 
  40. pwdx generates nothing.  If it doesn't, look at $HOME/pwd.foobar to
  41. see what really ran and what didn't.  
  42.  
  43. This is all very hard to believe, but I've seen stranger...
  44.  
  45. -rich
  46. -- 
  47.              Richard H. Schwartz, Scheduling Systems Inc.,
  48.             1000 Massachusetts Avenue, Cambridge, MA  02138
  49.                   (617) 864 8330; FAX (617) 864 8377
  50.                           rhs@world.std.com
  51.