Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!panda!enmasse!guy From: guy@enmasse.UUCP (The Computer Guy) Newsgroups: comp.unix.questions,comp.sources.d Subject: Re: Program runs under sdb, but when called direct?!?! Message-ID: <496@enmasse.UUCP> Date: Fri, 16-Jan-87 12:12:14 EST Article-I.D.: enmasse.496 Posted: Fri Jan 16 12:12:14 1987 Date-Received: Sat, 17-Jan-87 04:08:27 EST References: <1024@chinet.UUCP> Reply-To: guy@enmasse.UUCP (The Computer Guy) Organization: EnMasse Computer Corp, Acton, MA Lines: 18 Xref: mnetor comp.unix.questions:701 comp.sources.d:164 In article <1024@chinet.UUCP> megabyte@chinet.UUCP (Dr. Megabyte) writes: I have a program, the recent VC spreadsheet program on my AT&T 3b2/400 with SVR2. I compiled it without errors. When I try to run it, the program does nothing, so I treid to use the sdb debugger on it. When I used "sdb vc" and then issued the "r" command to run the program, it ran fine!! What could make a program run perfectly under the debugger, but not from the shell? I had the very same problem once. It turned out that my PATH environment variable did not search the current directory first, so the shell was actually executing a program in another directory, while sdb (using the program name as a pathname) executed the one in the current directory. Don't you hate stupid problems like this? -- -- guy k hillyer {alliant,panda,drilex}!enmasse!guy