From 51dea2ea17b5504b880eddd5ff1c28f30f7a66cd Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 25 Feb 2013 17:18:29 +0100 Subject: [PATCH] sqlite is not mysql part 2: fix parameter expansion --- atom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atom b/atom index 63d19b2..d962645 100755 --- a/atom +++ b/atom @@ -261,7 +261,7 @@ Select() { ",'SQL::Select:not found'" \ ");" >&3 read -u 4 results - results="${results# = }" + results="${results#* = }" if ! [[ $results == "SQL::Select:not found" ]] then echo "$results" @@ -298,7 +298,7 @@ Insert() { (( no_id )) || { echo 'SELECT LAST_INSERT_ROWID();' >&3 read -u 4 results - results="${results# = }" + results="${results#* = }" echo "$results" } } @@ -412,7 +412,7 @@ InsertOrUpdate() { ) ) fi - results="${results# = }" + results="${results#* = }" echo "$results" }