From 81dd9fb561bd9596e22c98622de86f881dc7427e Mon Sep 17 00:00:00 2001 From: 9seconds Date: Sat, 1 Nov 2014 17:42:23 +0300 Subject: [PATCH] Bugfix --- app/commands/tee.go | 4 +--- app/utils/re.go | 2 -- main.go | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/commands/tee.go b/app/commands/tee.go index 844dd81..e33e39d 100644 --- a/app/commands/tee.go +++ b/app/commands/tee.go @@ -9,7 +9,6 @@ import ( "io/ioutil" "os" "os/exec" - "regexp" "github.com/9seconds/ah/app/environments" "github.com/9seconds/ah/app/historyentries" @@ -55,8 +54,7 @@ func Tee(input string, interactive bool, pseudoTTY bool, env *environments.Envir } func getPreciseHash(cmd string, env *environments.Environment) (hash string, err error) { - filter := utils.CreateRegexp(regexp.QuoteMeta(cmd)) - commands, err := historyentries.GetCommands(historyentries.GetCommandsAll, filter, env) + commands, err := historyentries.GetCommands(historyentries.GetCommandsAll, nil, env) if err != nil { err = fmt.Errorf("Cannot fetch commands list: %v", err) return diff --git a/app/utils/re.go b/app/utils/re.go index f7f0b1f..f12d8a9 100644 --- a/app/utils/re.go +++ b/app/utils/re.go @@ -3,8 +3,6 @@ package utils import ( "fmt" "regexp" - - //re2 "code.google.com/p/sre2/sre2" ) // Regexp is just a wrapper to play with different regular expression libraries diff --git a/main.go b/main.go index 6abe07b..4c74031 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ Options: -v, --debug Shows a debug log of command execution.` -const version = "ah 0.8" +const version = "ah 0.9" var validateBookmarkName = utils.CreateRegexp(`^[A-Za-z_]\w*$`)