Opened 8 years ago

Closed 8 years ago

#939 closed enhancement (fixed)

Issue with saved application of one command-line-argument

Reported by: howeyc Owned by:
Priority: normal Milestone:
Component: Runtime (threads, GC) Version: 1.8
Keywords: Cc:

Description

There's an issue where when you use ccl:save-application with ":prepend-kernel t" and try to use command-line-arguments in your app and try to pass only one argument, ccl tries to load it as an image.

I will be attaching hello.lisp and a diff patch.

ccl-1.7

$ ./fx86cl --load hello.lisp

$ ./hello foo

Couldn't load lisp heap image from foo: No such file or directory

$ ./hello foo bar

(./hello foo bar)

ccl-1.7 (After patch)

$ ./fx86cl --load hello.lisp

$ ./hello foo

(./hello foo)

$ ./hello foo bar

(./hello foo bar)

Attachments (2)

hello.lisp (165 bytes) - added by howeyc 8 years ago.
simple app to show command argument issue
ccl-1.7-onearg.patch (1023 bytes) - added by howeyc 8 years ago.
patch to main() to fix issue

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by howeyc

simple app to show command argument issue

Changed 8 years ago by howeyc

patch to main() to fix issue

comment:1 Changed 8 years ago by rme

  • Component changed from IDE to Runtime (threads, GC)
  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to enhancement
  • Version changed from 1.7 to 1.8

We actually took out the shortcut of treating a single command line argument as an image name in r15159.

The just-released 1.8 release includes that behavior, so I'm going to close this as fixed in 1.8.

Note: See TracTickets for help on using tickets.