[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nested expansion in heredoc fails
From: |
Norbert Lange |
Subject: |
Nested expansion in heredoc fails |
Date: |
Tue, 13 Dec 2022 18:42:03 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux lano-work 6.0.0-5-amd64 #1 SMP PREEMPT_DYNAMIC
Debian 6.0.10-2 (2022-12-01) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.2
Patch Level: 2
Release Status: release
Description:
Parameter expansion within heredocs fails.
The code below works with other shells aswell as bash 5.1
Repeat-By:
BUILDDIR=/builds/test
cat << EOC
Dir: ${BUILDDIR#$(pwd)/}
EOC
- Nested expansion in heredoc fails,
Norbert Lange <=