[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: bug regarding os.execute?
- From: "Xu Wang" <xu4wang@...>
- Date: Mon, 21 Jul 2008 12:37:00 +0800
Dear lua list,
See below for a test:
D:\test>lua
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> cmd1=[["C:\Program Files\TortoiseSVN\bin\subwcrev" .\ "addnb.v29.ace" "D:\ace\addnb.v29.ace"]]
> os.execute(cmd1)
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
> cmd2=[["C:\Program Files\TortoiseSVN\bin\subwcrev" .\ addnb.v29.ace D:\ace\addnb.v29.ace]]
> os.execute(cmd2)
SubWCRev: 'D:\wangxu\WorkData\Kuwait_USR6_USR6.1\movie\'
Last committed at revision 18
Mixed revision range 17:18
>
cmd1 is error but cmd2 can be executed sucessfully. why?
Regards,
Xu