History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4142
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: -- --
Assignee: Unassigned
Reporter: Trebor Fenstermaker
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

LZC arguments that use an equal sign (such as --runtime=swf8) do not work on the Windows command line (cmd).

Created: 14/Jun/07 10:00 AM   Updated: 08/Nov/07 02:38 PM
Component/s: Compiler
Affects Version/s: 3.3.3
Fix Version/s: Cranberry

Time Tracking:
Not Specified

Environment: Windows CMD

Severity: Minor
Runtime: N/A
Fix in hand: True


 Description  « Hide
Any lzc argument which uses an equal sign, such as --runtime=swf8, will not work on DOS. It appears DOS strips the equals and treats the LH and RH sides as separate arguments to the batch file. Thus, instead of the arguments to the java call for the compiler being "--runtime=swf8" it appears as "--runtime swf8." Since "echo" is off on the batch files, this is not obvious to the user; instead, the user sees an unhelpful "Usage" error from the compiler, suggesting she type "--help".

A simple work-around is for the user to enclose the entire argument in quotes: "--runtime=swf8" will preserve the equals. Going forward, perhaps we should change the syntax of this argument (and any others that use the equals, such as logging) to something that isn't affected by the DOS shell, or change the help to make it clear to DOS users that they need to escape these arguments.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
P T Withington - 20/Jun/07 01:59 PM
Please provide input for doc and re=assign.


Philip Romanik - 26/Jun/07 03:00 PM
When run from the Microsoft Windows command prompt, the lzc is /WEB-INF/lps/server/bin/lzc.bat. For other environemtns and operating systems, lzc runs the bash script /WEB-INF/lps/server/bin/lzc.

The Windows command line program (cmd) interprets spaces, ',' and '=' as argument separators. Arguments must be quoted to override this behavior. To call lzc from the Windows command line you must issue the command as,

lzc "--runtime=swf" myfile.lzx

This is a common compatibility issue between the Windows command line shell and other shells.

This simple script (I called it test.bat) will show the first two arguments,

@ECHO OFF
echo arg1 = %1
echo arg2 = %2




Amy Muntz - 11/Oct/07 11:26 AM
Duplicate of LPP-4843

Mamye Kratt - 08/Nov/07 02:37 PM
(wafflecone build r6994)
Phil confirmed this is now fixed.

Mamye Kratt - 08/Nov/07 02:38 PM
(wafflecone build r6994)
Phil confirmed this is now fixed.