Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thanks, that's part of the problem. The other part, and apparently the one that is producing the syntax error I saw, is the user of the hyphen in the function name. Replacing those with underscores solves the problem. Commented Dec 14, 2017 at 15:47
  • set_k8s_minikube() { export KUBECONFIG=~/.kube/config.minikube; } works. Commented Dec 14, 2017 at 15:49
  • 1
    Hmm, function name with hyphens is OK for me on bash v4.3.48 Commented Dec 14, 2017 at 15:50
  • @NieldeWet I have no old Bash to test with, unfortunately... Commented Dec 14, 2017 at 15:54
  • 1
    Even the Bash 3.2.57 on my Mac supports hyphens in function names. Commented Dec 14, 2017 at 17:20