[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
0001-replace-patterns-in-empty-strings.patch
Description: Binary data
- [PATCH] replace patterns in empty strings,
isabella parakiss <=