From ee243c6d6b8a3bb1591346aca628cbbc7e96cbad Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 30 Jan 2024 15:21:26 -0300 Subject: [PATCH] docs: update wish.Command docs --- cmd.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd.go b/cmd.go index f63285a..444968f 100644 --- a/cmd.go +++ b/cmd.go @@ -13,10 +13,6 @@ import ( // // If the current session does not have a PTY, it sets them to the session // itself. -// -// Note that due to the way Windows conpty works, using this on a Windows -// server in conjunction with the AllocatePty option is not recommended, -// as once the command finishes, the PTY will be killed too. func CommandContext(ctx context.Context, s ssh.Session, name string, args ...string) *Cmd { cmd := exec.CommandContext(ctx, name, args...) return &Cmd{s, cmd} @@ -28,10 +24,6 @@ func CommandContext(ctx context.Context, s ssh.Session, name string, args ...str // itself. // // This will use the session's context as the context for exec.Command. -// -// Note that due to the way Windows conpty works, using this on a Windows -// server in conjunction with the AllocatePty option is not recommended, -// as once the command finishes, the PTY will be killed too. func Command(s ssh.Session, name string, args ...string) *Cmd { return CommandContext(s.Context(), s, name, args...) }