close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Opened 15 years ago

Closed 15 years ago

#28 closed enhancement (fixed)

Need to stop command switch processing at --

Reported by: frideau Owned by: Raymond Toy
Priority: minor Milestone:
Component: Core Version: 2008-11
Keywords: Cc:

Description

So that it be possible for a wrapper script to call a safe cmucl application with user arguments that are not processed by process-command-strings but by the application code, without opening a backdoor whereby malicious users can use -eval in their arguments, I'd like the code in code/commandline.lisp to stop evaluation of switches when it reaches the standard marker "--".

This would notably simplify the cl-launch wrapper's support for cmucl. Currently, it has to first create a setf form from the shell to initialize the lisp's *arguments* from within an -eval form.

Change History (2)

comment:1 Changed 15 years ago by Raymond Toy

Done. All arguments after "--" are not processed any further by CMUCL, and all arguments are placed in EXT:*COMMAND-LINE-APPLICATION-ARGUMENT*.

Will be available in the 2009-01 snapshot.

comment:2 Changed 15 years ago by Raymond Toy

Resolution: fixed
Status: newclosed

Implemented in snapshot 2009-01.

Note: See TracTickets for help on using tickets.