mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-17 13:33:49 -07:00
@@ -90,9 +90,9 @@ func runProxy(commandPrefix string, cmdBuilder func(temp string, needBash bool)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// To ensure that the options are processed by a POSIX-compliant shell,
|
// * Write the command to a temporary file and run it with sh to ensure POSIX compliance.
|
||||||
// we need to write the command to a temporary file and execute it with sh.
|
// * Nullify FZF_DEFAULT_* variables as tmux popup may inject them even when undefined.
|
||||||
var exports []string
|
exports := []string{"FZF_DEFAULT_COMMAND=", "FZF_DEFAULT_OPTS=", "FZF_DEFAULT_OPTS_FILE="}
|
||||||
needBash := false
|
needBash := false
|
||||||
if withExports {
|
if withExports {
|
||||||
validIdentifier := regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]*$`)
|
validIdentifier := regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]*$`)
|
||||||
|
Reference in New Issue
Block a user