2
2
zrcadlo https://github.com/Hilbis/Hilbish synchronizováno 2025-07-06 02:52:02 +00:00

Porovnat revize

..

Žádné společné commity. „e676c095c2f97b8c0f13709857d9b2dfce178b95“ a „80d72a29bb1601561e93e6be02bdf85c259cfde8“ mají zcela odlišnou historii.

2 změnil soubory, kde provedl 2 přidání a 4 odebrání

Zobrazit soubor

@ -66,8 +66,6 @@ func (s *Snail) Run(cmd string, strms *util.Streams) (bool, io.Writer, io.Writer
buf := new(bytes.Buffer)
//printer := syntax.NewPrinter()
replacer := strings.NewReplacer("[", "\\[", "]", "\\]")
var bg bool
for _, stmt := range file.Stmts {
bg = false
@ -97,7 +95,7 @@ func (s *Snail) Run(cmd string, strms *util.Streams) (bool, io.Writer, io.Writer
_, argstring = splitInput(strings.Join(args, " "))
// If alias was found, use command alias
argstring = util.MustDoString(s.runtime, fmt.Sprintf(`return hilbish.aliases.resolve [[%s]]`, replacer.Replace(argstring))).AsString()
argstring = util.MustDoString(s.runtime, fmt.Sprintf(`return hilbish.aliases.resolve("%s")`, argstring)).AsString()
var err error
args, err = shell.Fields(argstring, nil)

Zobrazit soubor

@ -240,7 +240,7 @@ func NewInstance() *Instance {
var err error
rl.regexSearch, err = regexp.Compile("(?i)" + string(rl.tfLine))
if err != nil {
//rl.RefreshPromptLog(err.Error())
rl.RefreshPromptLog(err.Error())
rl.infoText = []rune(Red("Failed to match search regexp"))
}