home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!world!rhs
- From: rhs@world.std.com (Richard H Schwartz)
- Subject: Re: csh is screwed up
- Message-ID: <BtvByF.I58@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1992Aug27.171503.794@colorado.edu> <1992Aug29.085228.2232@panix.com> <1992Aug31.171710.2035@colorado.edu>
- Date: Mon, 31 Aug 1992 22:03:51 GMT
- Lines: 40
-
- powellb@samwise.colorado.edu (Brian Powell) writes:
-
- >There, everything is explicit, and should work for everybody. However, it will
- >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
- >executed the pwd command. I ran it both under csh and tcsh with the same
- >results. I realize that this should work for everybody; however, has anyone
- >else had this problem or resolved a similar one?
-
- Works find on my machine, too. I have, however, seen pwd get confused when
- the current directory is a symbolic-linked directory from a remote-mounted
- volume to remote-remote-mounted volume. Is there any pattern at all regarding
- what directory you are in when it works and when it doesn't?
-
- One last stab...
- ==========================
- mv /bin/pwd /bin/pwdx
-
- create a new script /bin/pwd
-
- #!/bin/sh
- # brain-damage detector
- echo -n /foo/bar/ | tee -a $HOME/pwd.foobar
- /bin/pwdx | tee -a $HOME/pwd.foobar
-
- chmod +x /bin/pwdx
- ==========================
-
- The question: is pwd not generating any output, or is csh not getting
- it? Your script should always see at least the "/foo/bar", even if
- pwdx generates nothing. If it doesn't, look at $HOME/pwd.foobar to
- see what really ran and what didn't.
-
- This is all very hard to believe, but I've seen stranger...
-
- -rich
- --
- Richard H. Schwartz, Scheduling Systems Inc.,
- 1000 Massachusetts Avenue, Cambridge, MA 02138
- (617) 864 8330; FAX (617) 864 8377
- rhs@world.std.com
-