Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16358

Re: Command substitution

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Martin Schulte <gnu@schrader-schulte.de>
Newsgroups gnu.bash.bug
Subject Re: Command substitution
Date Wed, 3 Jun 2020 09:18:35 +0200
Lines 21
Approved bug-bash@gnu.org
Message-ID <mailman.1036.1591168728.2541.bug-bash@gnu.org> (permalink)
References <87mu5kgbxu.fsf@hobgoblin.ariadne.com> <20200603063850.GH8205@medium.hauri> <20200603091835.c349069068c6822c17f1739e@schrader-schulte.de>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1591168729 15644 209.51.188.17 (3 Jun 2020 07:18:49 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To felix <felix@f-hauri.ch>
Envelope-to bug-bash@gnu.org
In-Reply-To <20200603063850.GH8205@medium.hauri>
X-Mailer Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
Received-SPF pass client-ip=51.15.128.4; envelope-from=gnu@schrader-schulte.de; helo=sa.ds-gmbh.de
X-detected-operating-system by eggs.gnu.org: First seen = 2020/06/03 03:18:40
X-ACL-Warn Detected OS = Linux 3.11 and newer [fuzzy]
X-Spam_score_int -18
X-Spam_score -1.9
X-Spam_bar -
X-Spam_report (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200603091835.c349069068c6822c17f1739e@schrader-schulte.de>
X-Mailman-Original-References <87mu5kgbxu.fsf@hobgoblin.ariadne.com> <20200603063850.GH8205@medium.hauri>
Xref csiph.com gnu.bash.bug:16358

Show key headers only | View raw


Hello Felix!

> Quoting is useless when assigning variable from ouptut of command or
> another variable:

Yes, I assume you are right.

> Unfortunely, I don't retrieve this behaviour in man page.

Me neither, maybe the manual should read

If the substitution appears within double quotes *or as the right-hand
side of an variable assignment*, word splitting and filename expansion are
not performed on the results.

at end of 3.5.4.

Best regards,

Martin

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Command substitution Martin Schulte <gnu@schrader-schulte.de> - 2020-06-03 09:18 +0200

csiph-web