Here is a very sample code :
 Code:
$arrParams = GetCommandLine(1)

"version KIX         : " @KIX ?
"command line string : " GetCommandLine(0) ?
"command line array  : " ?
for each $param in $arrParams
	"  " $param ?
next

"user                : " $user ?
In some case, i don't get the wanted result !!!

with the following command line
 Code:
kix32 test.kix $user="_00001"
The result is OK
 Code:
version KIX         : 4.64
command line string : kix32 test.kix $user="_00001"
command line array  :
  kix32
  test.kix
  $user=_00001
user                : _00001


with the following command line
 Code:
kix32 test.kix $user="00001"
The result is wrong
 Code:
version KIX         : 4.64
command line string : kix32 test.kix $user="00001"
command line array  :
  kix32
  test.kix
  $user=00001
user                : 1

it seems that when splitting the commandline, KiXtart deletes double-quote and tries to convert strings to integer !!!

i have tested this code with all versions from 4.53 to 4.64 and have the same behavior.
Is it a bug or is it by design ?

this is a little bit annoying because for an application, i have to launch a script on hundreds of subdirectories called in numerical format. I can by-pass the problem by adding a special character in the commandline and removing it in the script like following :
 Code:
commandline : kix32 test.kix $user="_00001"
 
script :
$user = substr($user,2)
$arrParams = GetCommandLine(1)

"version KIX         : " @KIX ?
"command line string : " GetCommandLine(0) ?
"command line array  : " ?
for each $param in $arrParams
	"  " $param ?
next

"user                : " $user ?
 
result :
version KIX         : 4.64
command line string : kix32 test.kix $user="_00001"
command line array  :
  kix32
  test.kix
  $user=_00001
user                : 00001
but this is not very nice

Christophe
_________________________
Christophe