ondrejsika / kubernetes-training

Skoleni Kubernetes
https://skoleni-kubernetes.cz
75 stars 25 forks source link

fix(README): Improve kdev shell alias definition #264

Closed VojtechMyslivec closed 1 year ago

VojtechMyslivec commented 1 year ago

Use single quotes around the alias definition to make it a literal string. The subshell command (date) is then executed at the time the alias is used and not at the time of alias definition.

So the pod name would change every time (every second to be exact) the alias is called, which is probably intended originally.

Also use double-quotes around subshell command in the alias to protect the output against shell evaluation (whitespace, special symbols, etc.).

ondrejsika commented 1 year ago

Thanks @VojtechMyslivec