mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Change signature of "exec" and "fg" on Windows to match that on Unix.
This fixes #1195.
This commit is contained in:
parent
3e29266ee0
commit
3615988408
|
@ -27,7 +27,8 @@ var ErrNotInSameProcessGroup = errors.New("not in the same process group")
|
|||
// Replace the Elvish process with an external `$command`, defaulting to
|
||||
// `elvish`. This decrements `$E:SHLVL` before starting the new process.
|
||||
//
|
||||
// This command always raises an exception on Windows.
|
||||
// This command always raises an exception on Windows with the message "not
|
||||
// supported on Windows".
|
||||
|
||||
func execFn(fm *Frame, args ...interface{}) error {
|
||||
var argstrings []string
|
||||
|
|
|
@ -2,13 +2,12 @@ package eval
|
|||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
execFn = notSupportedOnWindows
|
||||
fg = notSupportedOnWindows
|
||||
)
|
||||
|
||||
var errNotSupportedOnWindows = errors.New("not supported on Windows")
|
||||
|
||||
func notSupportedOnWindows() error {
|
||||
func execFn(...interface{}) error {
|
||||
return errNotSupportedOnWindows
|
||||
}
|
||||
|
||||
func fg(...int) error {
|
||||
return errNotSupportedOnWindows
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user