wmi-1.3.16 from opsview.com

This commit is contained in:
Are Casilla
2019-02-16 00:16:52 +01:00
parent 163fdd3d1b
commit 17b3af2911
2146 changed files with 678824 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
exec smbscript "$0" ${1+"$@"}
var options = GetOptions(ARGV,
"POPT_COMMON_SAMBA");
if (options == undefined) {
println("Failed to parse options");
return -1;
}
libinclude("base.js");
var obj = new Object();
obj.FOO = "foo";
obj.BAR = "bar";
var str1 = "${FOO}:${BAR}";
var str2 = "${FOO}:${BAR} "; // note the space after the brace
var sub1 = substitute_var(str1, obj);
var sub2 = substitute_var(str2, obj);
assert(str1 + " " == str2);
assert(sub1 + " " == sub2);
exit(0);