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


Groups > gnu.bash.bug > #16358

Re: Command substitution

From Martin Schulte <gnu@schrader-schulte.de>
Newsgroups gnu.bash.bug
Subject Re: Command substitution
Date 2020-06-03 09:18 +0200
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>

Show all headers | 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