Re: Problem with Bash-4 and $(command) syntax

2009-03-13 Thread Tim Judd
On Thu, Mar 12, 2009 at 11:35 PM, bf bf20...@yahoo.com wrote: {Problem with Bash-4 and $(command) ...}: [...] I found the same problem, and have reverted to bash3.2 until it's sorted out. See if the following helps. http://tiswww.case.edu/php/chet/bash/COMPAT Especially:

Re: Problem with Bash-4 and $(command) syntax

2009-03-13 Thread Jerry
On Fri, 13 Mar 2009 13:16:07 -0600 Tim Judd taj...@gmail.com wrote: On Thu, Mar 12, 2009 at 11:35 PM, bf bf20...@yahoo.com wrote: I'm wondering if a fix can be accomplished due to a semicolon within the ()s to complete a command line. Similar to how find(1) expression works, you have to end the

Problem with Bash-4 and $(command) syntax

2009-03-12 Thread Jerry
I just updated from Bash-3.x to Bash-4.0. There appears to be a problem with the way Bash-4 interprits the following. This works fine on Bash-3.x: snippet #!/usr/bin/env bash GET_PATH=1 if $( which gpg2 ); then printf gpg2 located fi /snippet However, under Bash-4, it fail with this

Re: Problem with Bash-4 and $(command) syntax

2009-03-12 Thread Mark McConnell
On 12 Mar 2009 at 10:25, Jerry wrote: {Problem with Bash-4 and $(command) ...}: Is this a known problem with Bash-4? I have not been able to find anything about it on the Bash site. Jerry ges...@yahoo.com I found the same problem, and have reverted to bash3.2 until it's sorted out.

Re: Problem with Bash-4 and $(command) syntax

2009-03-12 Thread Eray Aslan
On 13.03.2009 02:04, Mark McConnell wrote: On 12 Mar 2009 at 10:25, Jerry wrote: {Problem with Bash-4 and $(command) ...}: [...] I found the same problem, and have reverted to bash3.2 until it's sorted out. See if the following helps. http://tiswww.case.edu/php/chet/bash/COMPAT

Re: Problem with Bash-4 and $(command) syntax

2009-03-12 Thread bf
{Problem with Bash-4 and $(command) ...}: [...] I found the same problem, and have reverted to bash3.2 until it's sorted out. See if the following helps. http://tiswww.case.edu/php/chet/bash/COMPAT Especially: 38. Since bash-4.0 now follows Posix rules for finding the closing