Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
9seconds committed Nov 1, 2014
1 parent 12f2a78 commit 81dd9fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/commands/tee.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"io/ioutil"
"os"
"os/exec"
"regexp"

"github.com/9seconds/ah/app/environments"
"github.com/9seconds/ah/app/historyentries"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions app/utils/re.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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*$`)

Expand Down

0 comments on commit 81dd9fb

Please sign in to comment.