Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Ron Johnson
On 12/22/08 13:29, Dennis Wicks wrote: Ron Johnson wrote the following on 12/22/2008 01:13 PM: On 12/22/08 12:55, Sven Joachim wrote: [snip] These functions seem to be defined in /etc/bash_completion. [snip] Maybe /etc/bash_completion contains some code that bash doesn't like when it's cal

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Dennis Wicks
Ron Johnson wrote the following on 12/22/2008 01:13 PM: On 12/22/08 12:55, Sven Joachim wrote: [snip] These functions seem to be defined in /etc/bash_completion. [snip] Maybe /etc/bash_completion contains some code that bash doesn't like when it's called as sh. But another question is why

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Dennis Wicks
Sven Joachim wrote the following on 12/22/2008 12:55 PM: On 2008-12-22 15:09 +0100, Dennis Wicks wrote: When I run anything that is actually a shell script starting with #!/bin/sh and maybe any thing that uses a shell function I get five or six screens full of messages that look like the follow

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Ron Johnson
On 12/22/08 12:55, Sven Joachim wrote: [snip] These functions seem to be defined in /etc/bash_completion. [snip] Maybe /etc/bash_completion contains some code that bash doesn't like when it's called as sh. But another question is why a non-interactive shell even reads that file. That's a m

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Tzafrir Cohen
On Mon, Dec 22, 2008 at 08:09:31AM -0600, Dennis Wicks wrote: > Greetings; > > When I run anything that is actually a shell script starting with > #!/bin/sh and maybe any thing that uses a shell function I get five or > six screens full of messages that look like the following and all start > wi

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Sven Joachim
On 2008-12-22 15:09 +0100, Dennis Wicks wrote: > When I run anything that is actually a shell script starting with > #!/bin/sh and maybe any thing that uses a shell function I get five or > six screens full of messages that look like the following and all > start with /bin/sh > > /bin/sh: _o

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Ron Johnson
On 12/22/08 11:25, Dennis Wicks wrote: Bob Cox wrote the following on 12/22/2008 08:35 AM: On Mon, Dec 22, 2008 at 08:09:31 -0600, Dennis Wicks (w...@mgssub.com) [snip] function lm () { ls -laNF "$@" | $(which less) } [snip] Any other ideas? Oh yeah, I'

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Dennis Wicks
Bob Cox wrote the following on 12/22/2008 08:35 AM: On Mon, Dec 22, 2008 at 08:09:31 -0600, Dennis Wicks (w...@mgssub.com) wrote: Greetings; When I run anything that is actually a shell script starting with #!/bin/sh and maybe any thing that uses a shell function I get five or six screens fu

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Bob Cox
On Mon, Dec 22, 2008 at 08:09:31 -0600, Dennis Wicks (w...@mgssub.com) wrote: > Greetings; > > When I run anything that is actually a shell script starting with > #!/bin/sh and maybe any thing that uses a shell function I get five or > six screens full of messages that look like the following a

Re: Help - Getting lots of errors from functions and scripts

2008-12-22 Thread Ron Johnson
On 12/22/08 08:09, Dennis Wicks wrote: Greetings; When I run anything that is actually a shell script starting with #!/bin/sh and maybe any thing that uses a shell function I get five or six screens full of messages that look like the following and all start with /bin/sh /bin/sh: _opens