Linux Agent: Update all instances of '[...]' to '[[...]]'#21
Linux Agent: Update all instances of '[...]' to '[[...]]'#21rawiriblundell wants to merge 1 commit into
Conversation
|
I am very reluctant to make such a change for portability reasons. Currently we have 10 different shell-based agents, and our goal is to reduce these to 2: The OpenVMS agent is totally different, but the 9 other ones can and should be merged at some point. Furthermore, the agents have to run on really old platforms, like ancient Solaris/AIX versions etc. with really ancient and primitive shells. So we simply can't assume even slightly modern features, everything should run on some FYI: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Portable-Shell.html has quite some info about things to avoid. As a general rule of thumb: If a shell feature is not used by a standard |
|
@svenpanne : IN AIX /bin/sh is linked to korn shell: `sh Command Purpose Syntax Description Flags Files ` |
Clean up - cmk.gui.watolib.wato_background_job and a few imports that were barely used, if at all, - cmk.gui.watolib.user_scripts - cmk.gui.watolib.users CMK-10313 Change-Id: Ia8892ca6e5fdedf4863cc7b4c2aa5159c5b82e08
Change-Id: I14d6d2730100a184753c08ae9bd8dfe5b2ec6389
Change-Id: If6a7bb9c8161c1709f44a39e41f96667b0dcb16e
Change-Id: Ibeaa98a162c829badf5496649e0936ebe87407ca
Change-Id: I2f57406989a3b2e81315ae38c051c46f2fb92782
Hi,
bash, ksh and zsh all support
[[ ]], which is more capable, more robust/safer and it is faster. This is technically an (admittedly miniscule) optimisation as well as a style change.