Mailinglist Archive: opensuse (2114 mails)

< Previous Next >
Re: [opensuse] BASH script help needed - Why is full path required?
  • From: "(David C. Rankin)" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 16 Oct 2008 23:37:23 -0500
  • Message-id: <48F81683.2090700@xxxxxxxxxxxxxxxxxx>
Randall R Schulz wrote:
On Thursday 16 October 2008 20:26, David C. Rankin wrote:
Listmates, Bash gurus

I'm stuck again with a BASH problem that I don't fully understand. I
am working with my ATI driver install script and for some reason I
must provide the full path name for rpm to be able to install the
file, but from everything I see, it should work with a relative path
or simply the file name since the script is executed in the same
directory as the file. I have underlined the rpm call that is giving
me the problem of needing the full path-to-the-rpm. The relative
parts of the script are:

Nothing jumps out. But I gather we're not seeing the entire script. What
does the sh-bang line look like? My guess is that it does not include
the "--norc" command, which means that your ~/.bashrc is being
executed. Could that be changing the current working directory?

I always recommend this sh-bang line:

#!/bin/bash --norc


...
--
David C. Rankin


Randall Schulz

Hmm..

I'll give it a try Randall. Also means sudo may be giving me some
trouble as
well. Thanks.


--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups