Just as an example of how other language manage that difference between REPL and the Interpreter: Ruby...
$ irb -v irb 0.9.6(09/06/30) $ ruby -v ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux] El mié., 8 may. 2019 a las 0:48, <s...@corfield.org> escribió: > Or just type: > > > > clojure > > or: > > clj > > > > And it announces the version and starts a REPL – which is documented usage. > > > > I think one of the “issues” here is that clojure / clj are scripts that > have an inherent version behind them (clojure -Sdescribe) but the version > of Clojure that they run with is context-dependent. deps.edn can specify > any Clojure back to … Clojure 1.1 it seems: > > > > seanc@DESKTOP-QU2UJ1N:~$ clojure -Sdeps '{:deps {org.clojure/clojure > {:mvn/version "1.1.0"}}}' > > Clojure 1.1.0 > > user=> *clojure-version* > > {:major 1, :minor 1, :incremental 0, :qualifier ""} > > user=> > > > > Given that, I think that a –version option on clojure would be misleading > since it is not reporting the version of the clojure / clj scripts. > > > > Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > > *From: *Alan Thompson <clooj...@gmail.com> > *Sent: *Tuesday, May 7, 2019 4:50 PM > *To: *clojure <clojure@googlegroups.com> > *Subject: *No "clojure --version" switch > > > > Seems we should have the "--version" switch that is pretty universal. > Right now, the best one can do is > > > > > clojure --eval "(clojure-version)" > > "1.10.0" > > > > which is hard for a new user to figure out. Jira ticket? > > > > Alan > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/clojure/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.com > <https://groups.google.com/d/msgid/clojure/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/clojure/5cd24a6f.1c69fb81.bb91f.699f%40mx.google.com > <https://groups.google.com/d/msgid/clojure/5cd24a6f.1c69fb81.bb91f.699f%40mx.google.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAO9z-96Syo7PZrZUbV07iRHd3qUf4_SWc70%2BS2-E4%3DSmzSMYgg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.