summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/run-c-ex.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/run-c-ex.sh.in b/examples/run-c-ex.sh.in
index b561617..90d5c6a 100644
--- a/examples/run-c-ex.sh.in
+++ b/examples/run-c-ex.sh.in
@@ -46,7 +46,7 @@ prefix=@prefix@
examplesdir=@examplesdir@
if [ ${examplesdir##${prefix}/} != ${examplesdir} ]; then
echo $(echo ${examplesdir##${prefix}/} | \
- sed -E 's,[^/]+,..,g')
+ sed 's,[^/][^/]*,..,g')
else
echo $prefix
fi