[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
$$'...' parsing bug?
From: |
Christian Weisgerber |
Subject: |
$$'...' parsing bug? |
Date: |
Mon, 30 Jan 2017 16:31:47 +0100 |
User-agent: |
Mutt/1.7.2 (2016-11-26) |
This came up on comp.unix.shell:
There appears to be a parsing problem in bash where the sequence
$$'...' is treated as $'...', and $$"..." as $"...", when inside
$(...).
$ echo 'x\nx'
x\nx
$ echo $'x\nx'
x
x
$ echo $$'x\nx'
86293x\nx
$ echo $(echo $'x\nx')
x x
$ echo $(echo $$'x\nx')
x x
This is with bash 4.4.12... but a quick check shows the same behavior
with 4.2.37.
--
Christian "naddy" Weisgerber naddy@mips.inka.de
- $$'...' parsing bug?,
Christian Weisgerber <=