From 94c436dbc5d24148eb4caf53d2d676dea20de92e Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 24 Nov 2010 17:57:28 +0100 Subject: [PATCH] bug in tm sed expressions --- src/tm_mad/tm_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tm_mad/tm_common.sh b/src/tm_mad/tm_common.sh index 47a80cc29b..cb087cc23e 100644 --- a/src/tm_mad/tm_common.sh +++ b/src/tm_mad/tm_common.sh @@ -124,13 +124,13 @@ function error_message # Gets the host from an argument function arg_host { - echo $1 | $SED 's/^\([^:]*\):.*$/\1/' + echo $1 | $SED 's/^([^:]*):.*$/\1/' } # Gets the path from an argument function arg_path { - echo $1 | $SED 's/^[^:]*:\(.*\)$/\1/' + echo $1 | $SED 's/^[^:]*:(.*)$/\1/' } # Executes a command, if it fails return error message and exits