[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Expansion of unquoted special parameter $@ when used as the word for a H
From: |
Robin A. Meade |
Subject: |
Expansion of unquoted special parameter $@ when used as the word for a HERE STRING |
Date: |
Tue, 5 Nov 2019 10:30:39 -1000 |
Consider:
set a 'b c'
cat <<< $@;
The output is:
a b c
I expected the 3 spaces between b and c to be preserved.
Configuration Information:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-Wno-parentheses -Wno-format-security
uname output: Linux localhost.localdomain 5.3.8-300.fc31.x86_64 #1 SMP Tue
Oct 29 14:28:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu
Bash Version: 5.0
Patch Level: 7
Release Status: release
Robin
- Expansion of unquoted special parameter $@ when used as the word for a HERE STRING,
Robin A. Meade <=