Skip to contentSkip to conversation

dracut-lib.sh: splitsep fix

PATCH In review Amadeusz Żołnowski 2 participants 2 messages Nov 15, 2010 – Nov 16, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dracut-lib.sh: splitsep fix

---
 modules.d/99base/dracut-lib.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
modules.d/99base/dracut-lib.sh +2 -2
index f0c030b..37659fe 100755
@@ -183,10 +183,10 @@ splitsep() {
     local tmp
 
     while [ -n "$str" -a -n "$*" ]; do
-        tmp="${str%%:*}"
+        tmp="${str%%$sep*}"
         eval "$1=${tmp}"
         str="${str#$tmp}"
-        str="${str#:}"
+        str="${str#$sep}"
         shift
     done
 
Signature · 1 line
1.7.3.2

A message that is not in the archive (sent off-list or not yet received): 1289838876-18432-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org

#2 lore raw

Am 15.11.2010 17:34, schrieb Amadeusz Żołnowski:

Quoted 11 lines
---
  modules.d/99base/dracut-lib.sh |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
modules.d/99base/dracut-lib.sh +0 -0
index f0c030b..37659fe 100755
@@ -183,10 +183,10 @@ splitsep() {
      local tmp
 

modules.d/99base/dracut-lib.sh splitsep() { · line 192

Quoted 10 lines
modules.d/99base/dracut-lib.sh +2 -2
      while [ -n "$str" -a -n "$*" ]; do
-        tmp="${str%%:*}"
+        tmp="${str%%$sep*}"
          eval "$1=${tmp}"
          str="${str#$tmp}"
-        str="${str#:}"
+        str="${str#$sep}"
          shift
      done
 

pushed