diff --git a/interp/builtin.go b/interp/builtin.go index c29b74da..dd62a544 100644 --- a/interp/builtin.go +++ b/interp/builtin.go @@ -878,7 +878,8 @@ func (r *Runner) builtinCode(ctx context.Context, pos syntax.Pos, name string, a default: // "umask", "fg", "bg", - panic(fmt.Sprintf("unhandled builtin: %s", name)) + r.errf("%s: unimplemented builtin\n", name) + return 2 } return 0 }