From 170f44d00498bdb0e916e7efdc19a8d3489a381c Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 25 Sep 2007 10:54:13 +0800 Subject: [EXPAND] Do not expand tilde in parameter expansion within quotes Previously code was added so that tilde expansion was carried out parameter expansions within double quotes. This change was made with reference the behaviour of bash at the time. Bash has since be fixed so that this behaviour no longer occurs which is in line with most other POSIX shells. So this patch removes that behaviour in dash as well. Test case: unset a echo "${a:-~root}" Old result: /root New result: ~root --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7992485..dacc9b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-25 Herbert Xu + + * Do not expand tilde in parameter expansion within quotes. + 2007-09-24 Herbert Xu * Do not quote back slashes in parameter expansions outside quotes. -- cgit 1.4.1