Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Eduardo =?iso-8859-1?Q?A=2E_Bustamante_L=F3pez?= Newsgroups: gnu.bash.bug Subject: Re: Assignment of $* to a var removes spaces on unset IFS. Date: Mon, 13 Aug 2018 19:09:52 -0700 Lines: 31 Approved: bug-bash@gnu.org Message-ID: References: <28958.1534206249@jinx.noi.kre.to> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1534212602 9582 208.118.235.17 (14 Aug 2018 02:10:02 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Robert Elz , bug-bash , Chet Ramey To: Bize Ma Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CL5EVH59YJ9KUcRFc+VNqhIITEr9FZGwhJxNzKmEe5o=; b=Zb8IJ0qrGH0Z02FmPDKqIIcPPiN3g04akoS2z7DDQnxjP7Jt7rIuZHrTDy5UQf9aZu M99z3H7CVe1Ftf7r6SyL8ulI6tpssx4hgS31ZRvE+zOr8kabjxoI52xhtMwXbQmiQ0KM hmb3WzJw3zjIzUI6iXfntRcITkAiX8y6/wcnBhB5pAGiDzDADKcgzjCmFLHPQtrD5Uay RCxgKOOew4i65XTaVV/sahwIxf3wFV7vvvdppq1ZJQW1XUqwqzxGQ7L8HNMbED8Np0yb lYgDbrx1tRtZdHNlDEEoPMp3YFMS6sprrY2X+AanNqD+NvXS+YVzlm9S79SRN9JeNyAj 9QRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=CL5EVH59YJ9KUcRFc+VNqhIITEr9FZGwhJxNzKmEe5o=; b=a0XeQOPZ4f8Sl5k8OBdm5jLGgKuzvUQ2hvYUe8126AvvNgIiNwN056CULc/fXvh5Ha lUL+yRjHBuBYu51N3rkpD2UwChFFIF0WOVa2nTwWYRBc0/bNNL0atxE6DJyDjlwVsqKz CitFkxHS7CzNl6q/P+ux9miuENwzc1ZHtRWQxqvr4I/z7Mw7Hl0imEEZg7Nc+3ltDBPk ABtzyNtswT6VN6qG7fBDB/p4zb16yFt+QwoQ1fG9ls+NfunAC3zfHcgjWwq2a1fOO/sA dTkcAbl4HBLudynvgIXOt0UtzUkH1IHqP5v04cODIyb/TQLCJndxH0q5cwh3U1J9GbC1 RNzg== X-Gm-Message-State: AOUpUlFKavOX8XiQkI0eq9F99PHwqjewBIzNVBONyuLXU/BqXsRFKQsQ oG3A/Z9CYI37JjZdRX4c7Ho= X-Google-Smtp-Source: AA+uWPwHE04pUe2jlvQQ7/ooJNvrrqzJ2quLG/3rNAPmRC5DI/K2NCkrwL0xxE13RI0i0/thmYYQEQ== X-Received: by 2002:a62:9bc5:: with SMTP id e66-v6mr21262590pfk.84.1534212594401; Mon, 13 Aug 2018 19:09:54 -0700 (PDT) Mail-Followup-To: Bize Ma , Robert Elz , bug-bash , Chet Ramey Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::532 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14478 On Mon, Aug 13, 2018 at 09:36:23PM -0400, Bize Ma wrote: (...) > Please, do not waste our time in incorrect claims. > > Do your homework and test ! (...) Did you test Bash 5.0? Because that's where the current bug fixes are going to. I don't see Chet releasing a new version of 4.4 to fix something that's already fixed there. dualbus@ubuntu:~/src/gnu/bash$ cat /tmp/script echo $BASH_VERSION set -- " foo " " bar baz " " quux " unset IFS a=$* b="$*" printf '[%s]' "$a" "$b"; echo dualbus@ubuntu:~/src/gnu/bash$ bash /tmp/script 4.4.19(1)-release [foo bar baz quux][ foo bar baz quux ] dualbus@ubuntu:~/src/gnu/bash$ ./bash /tmp/script 5.0.0(1)-alpha [ foo bar baz quux ][ foo bar baz quux ] Please read this thread: * http://lists.nongnu.org/archive/html/bug-bash/2017-09/msg00058.html