[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is this a safe eval .. ?
From: |
Alex fxmbsw7 Ratchev |
Subject: |
is this a safe eval .. ? |
Date: |
Tue, 9 Mar 2021 12:28:23 +0100 |
<ogt> # q='@("a b"|"c d")' s='a b c d e' ; eval r=\${s//$q} ; printf %s "$r"
<shbot> ogt: e
$q being a a flat str extglob list of ".." pairs gotten by declare -p
(ignoring the left over spaces .. )
is it 'safe' as is , or .. ?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- is this a safe eval .. ?,
Alex fxmbsw7 Ratchev <=