Re: How do I run tests under Valgrind?

2012-09-22 Thread Stefano Lattarini
On 09/21/2012 10:49 PM, Jeff King wrote: Oh. It sounds like setting $SHELL to zsh is really the problem, then. If it is not Bourne-compatible when called as zsh, then it really should be called in a way that turns on compatibility mode (bash will do this when called as sh, but you can also do

Re: How do I run tests under Valgrind?

2012-09-22 Thread Jeff King
On Sat, Sep 22, 2012 at 03:03:58PM +0200, Stefano Lattarini wrote: On 09/21/2012 10:49 PM, Jeff King wrote: Oh. It sounds like setting $SHELL to zsh is really the problem, then. If it is not Bourne-compatible when called as zsh, then it really should be called in a way that turns on

Re: How do I run tests under Valgrind?

2012-09-22 Thread Stefano Lattarini
On 09/22/2012 07:47 PM, Jeff King wrote: On Sat, Sep 22, 2012 at 03:03:58PM +0200, Stefano Lattarini wrote: On 09/21/2012 10:49 PM, Jeff King wrote: Oh. It sounds like setting $SHELL to zsh is really the problem, then. If it is not Bourne-compatible when called as zsh, then it really should

Re: How do I run tests under Valgrind?

2012-09-21 Thread Ramkumar Ramachandra
Hi Peff, I was able to reproduce the problem on all my machines, and I consider this very disturbing. However, I was successfully able to corner the issue. I have an overtly long $PATH that's not getting split properly by `IFS=:` in one corner case -- in other words, this shell script fails to

Re: How do I run tests under Valgrind?

2012-09-21 Thread Stefano Lattarini
On 09/21/2012 09:58 PM, Ramkumar Ramachandra wrote: Hi again, Ramkumar Ramachandra wrote: I was able to reproduce the problem on all my machines, and I consider this very disturbing. However, I was successfully able to corner the issue. I have an overtly long $PATH that's not getting split

Re: How do I run tests under Valgrind?

2012-09-21 Thread Ramkumar Ramachandra
Hi Stefano, Stefano Lattarini wrote: Zsh doesn't do word-splitting by default on variable expansions: $ zsh -c 'v=1 2 3; for x in $v; do echo $x; done' 1 2 3 unless you set the SH_WORD_SPLIT option, or put Zsh in Bourne-compatibility mode somehow: ... but didn't we set $IFS for

Re: How do I run tests under Valgrind?

2012-09-21 Thread Ramkumar Ramachandra
Hi again, Ramkumar Ramachandra wrote: ... but didn't we set $IFS for this purpose? The following segment of code works: I'm sorry, it doesn't. That is the problem. Ram -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

Re: How do I run tests under Valgrind?

2012-09-21 Thread Jeff King
On Fri, Sep 21, 2012 at 10:13:09PM +0200, Stefano Lattarini wrote: On 09/21/2012 09:58 PM, Ramkumar Ramachandra wrote: Hi again, Ramkumar Ramachandra wrote: I was able to reproduce the problem on all my machines, and I consider this very disturbing. However, I was successfully able

Re: How do I run tests under Valgrind?

2012-09-17 Thread Jeff King
On Mon, Sep 17, 2012 at 07:55:24PM +0200, Johannes Sixt wrote: Am 17.09.2012 19:44, schrieb Jeff King: Oh, bleh. Stupid automatic --tee for valgrind. Try this: SHELL=/usr/bin/zsh -x ./t-basic.sh --valgrind I am also doing my tests with dash as my shell. You might try setting