On Thursday 16 October 2008 21:37, (David C. Rankin) wrote:
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. ...
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
I should add that this has to primary effects / motivations: 1) Faster start-up of the script, since ~/.bashrc isn't processed 2) Shell configuration / variable settings / options are in a known state (the environment is as inherited, of course).
...
-- 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.
I don't see a sudo invocation in what you wrote. If you're using it, you should review the manual page, 'cause the processing it does prior to executing the specified command is non-trivial and could conceivably be interfering. I'm not that well-versed in sudo, so I can't give details, but I just glanced at the man page.
-- David C. Rankin
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org