Mehul Jain <mehul.jain2029@xxxxxxxxx> writes: > On Mon, Apr 4, 2016 at 10:22 PM, Matthieu Moy > <Matthieu.Moy@xxxxxxxxxxxxxxx> 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/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html