bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

behaviour change between 4.2/4.3 with tilde


From: Hanno Böck
Subject: behaviour change between 4.2/4.3 with tilde
Date: Wed, 22 Oct 2014 10:20:04 +0200

Hello,

I experienced a somewhat unexpected behaviour change in bash 4.3
comparing to 4.2.

This is a reduced sample:
export a='x'; echo "${a/x/~}"

On bash 4.3 this will result in the user's homedir path. On 4.2 this
will result in a ~.
If one wants to get a "~" char there seems no easy portable way to do
so. Using escaping with \~ works in 4.3, but not in 4.2.

I wanted to ask if this is an expected feature/behaviour change in 4.3
or some kind of bug?


cu,
-- 
Hanno Böck
http://hboeck.de/

mail/jabber: hanno@hboeck.de
GPG: BBB51E42

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]