From: Matthieu Moy Date: Mon, 04 Apr 2016 18:21:30 GMT Subject: Re: [PATCH 5/5] t/t5520: test --[no-]autostash with pull.rebase=true Message-ID: In-Reply-To: Mehul Jain writes: > On Mon, Apr 4, 2016 at 10:22 PM, Matthieu Moy > wrote: >> I think it would be much simpler to drop the loop, and write instead >> something like (untested): > > I tested it (with few minor changes), and worked fine. > > test_autostash () { > OLDIFS=$IFS > IFS='=' > set -- $* > IFS=$OLDIFS This $IFS dance is not needed. If you need to split variable and value, then just pass two arguments on the caller side. -- Matthieu Moy http://www-verimag.imag.fr/~moy/