From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C1CBF1F453 for ; Wed, 20 Feb 2019 07:03:35 +0000 (UTC) Received: from localhost ([127.0.0.1]:35132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwLuo-0006NE-8K for normalperson@yhbt.net; Wed, 20 Feb 2019 02:03:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwLuh-0006MA-2o for bug-gnulib@gnu.org; Wed, 20 Feb 2019 02:03:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwLuf-0004Ma-6G for bug-gnulib@gnu.org; Wed, 20 Feb 2019 02:03:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56230) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwLuZ-0004Jy-ID for bug-gnulib@gnu.org; Wed, 20 Feb 2019 02:03:19 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 16C717F769; Wed, 20 Feb 2019 07:03:18 +0000 (UTC) Received: from raiskup.localnet (unknown [10.43.2.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A1EF1001E80; Wed, 20 Feb 2019 07:03:16 +0000 (UTC) From: Pavel Raiskup To: Bruno Haible Subject: Re: gnulib-tool: Improve handling of multiple --local-dir options Date: Wed, 20 Feb 2019 08:03:16 +0100 Message-ID: <2518009.NOBulbDumm@raiskup> Organization: Red Hat In-Reply-To: <2931584.EFCJPvSFVq@omega> References: <6157407.BPRi2t5o0z@omega> <33012288.smD7kdOuTz@raiskup> <2931584.EFCJPvSFVq@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 20 Feb 2019 07:03:18 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Tuesday, February 19, 2019 7:18:57 PM CET Bruno Haible wrote: > Hi Pavel, > > > > makes the IFS handling a bit more robust. > > What I meant is that > > save_IFS="$IFS" > for fpf_dir in $fpf_dirs > do > IFS="$save_IFS" > [Some more code] > done > IFS="$save_IFS" > > is more robust than > > save_IFS="$IFS" > for fpf_dir in $fpf_dirs > do > [Some more code] > done > IFS="$save_IFS" > > because the [Some more code] may invoke word splitting, and as a programmer > I would expect this word splitting to be performed against the default IFS. Makes sense, thanks. I was only confused by the var="$quoted_var" style, which I was before discouraged from. Pavel