bug-bash
[Top][All Lists]
Advanced

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

[PATCH] replace patterns in empty strings


From: isabella parakiss
Subject: [PATCH] replace patterns in empty strings
Date: Wed, 6 May 2015 12:41:09 +0200

I think this is wrong:  var= ; echo "${var/*/x}"
It should print x but it prints nothing.

The attached patch fixes this, I hope it's ok.

I don't know what's the correct behaviour in case $var is unset, but it's
probably worth to look at, since bash prints nothing in that case too.


---
xoxo iza

Attachment: 0001-replace-patterns-in-empty-strings.patch
Description: Binary data


reply via email to

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