|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #60413] build: sed expression problems when prefix is empty or slash |
Date: | Sun, 18 Apr 2021 07:33:13 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36 Edg/89.0.774.77 |
Follow-up Comment #9, bug #60413 (project octave): And next iteration to also match the prefix at the beginning of the variable: if test -n "$prefix"; then echo "$var" | sed -E "s%(-[LI]|[ ,]|^)${prefix}([/\\ ]|$)%\1\$\{prefix\}\2%g"; else echo "$var"; fi _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60413> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |