From 0a508ad8067dcc8d48420daca536fca09df5846b Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Mon, 13 Mar 2023 00:01:39 +0530 Subject: [PATCH] Update `kubectl edit` documentation kubectl defaults to /bin/bash if the SHELL environment variable isn't set. Updating the docs to mention that you can override the shell location by setting the SHELL environment variable. --- staging/src/k8s.io/kubectl/pkg/cmd/edit/edit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/edit/edit.go b/staging/src/k8s.io/kubectl/pkg/cmd/edit/edit.go index 3dff3b4904f..8305d2ef5fe 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/edit/edit.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/edit/edit.go @@ -44,6 +44,9 @@ var ( The default format is YAML. To edit in JSON, specify "-o json". + Shell defaults to /bin/bash if the SHELL environment variable is not set. + To override the shell location set the SHELL environment variable with the desired shell location. + The flag --windows-line-endings can be used to force Windows line endings, otherwise the default for your operating system will be used.