| 103 | } |
| 104 | |
| 105 | func isReservedFunctionName(name string) bool { |
| 106 | switch name { |
| 107 | case "true", ":", "false", "exit", "set", "shift", "unset", |
| 108 | "echo", "printf", "break", "continue", "pwd", "cd", |
| 109 | "wait", "builtin", "trap", "type", "source", ".", "command", |
| 110 | "dirs", "pushd", "popd", "umask", "alias", "unalias", |
| 111 | "fg", "bg", "getopts", "eval", "test", "devspace", "[", "exec", |
| 112 | "return", "read", "shopt": |
| 113 | return true |
| 114 | } |
| 115 | return false |
| 116 | } |
| 117 | |
| 118 | func validateFunctions(functions map[string]string) error { |
| 119 | for name := range functions { |