Julia: versioninfo don't work in embedded julia and with "-e" option

Created on 21 Aug 2018  ·  3Comments  ·  Source: JuliaLang/julia

julia -e "versioninfo()"
gives

ERROR: UndefVarError: versioninfo not defined
Stacktrace:
 [1] top-level scope at none:0

In Julia repl all works fine.
Also, versioninfo don't work with embedded Julia (C API) with the same error.

versioninfo:

Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD FX(tm)-8150 Eight-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, bdver1)

Most helpful comment

Docs missed this info.
Should I create pull request with your info?

All 3 comments

julia -e "using InteractiveUtils; versioninfo()", the REPL loads it automatically.

Docs missed this info.
Should I create pull request with your info?

Ha, good find. Yea, that should definitely be fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dpsanders picture dpsanders  ·  3Comments

manor picture manor  ·  3Comments

felixrehren picture felixrehren  ·  3Comments

TotalVerb picture TotalVerb  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments