On Wed, Feb 25, 2009 at 8:27 PM, Mark Colburn <[email protected]> wrote: > > #!/bin/sh > DP="${0%/*}" > java -cp ~/src/clojure/clojure.jar:${DP}/clj:${DP}/java - > Dnet.sourceforge.waterfront.plugins=${DP}/clj/net/sourceforge/ > waterfront/ide/plugins clojure.main ${DP}/clj/net/sourceforge/ > waterfront/ide/main.clj $*
You almost always want to use "$@" (including quotes) instead of $*. See this thread for why: http://groups.google.com/group/clojure/browse_thread/thread/769e5bf19e6636ea/a1b2a836ca229384?lnk=gst#a1b2a836ca229384 You'll also run into trouble if ${DP} contains spaces, unless you quote those arguments too: #!/bin/sh DP="${0%/*}" java -cp "~/src/clojure/clojure.jar:${DP}/clj:${DP}/java" -Dnet.sourceforge.waterfront.plugins="${DP}/clj/net/sourceforge/waterfront/ide/plugins" clojure.main "${DP}/clj/net/sourceforge/waterfront/ide/main.clj" "$@" -- Michael Wood <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
