Hello,
Commands “with a dot” do not work in excess of those listed in the starting Root-welcome.
I tried versions v26.00.00, v24.xx.xx, and the version indicated on the forum for 64-bit W10.
The result is the same as on the added PrtScr. I added “by hands” path: root/lib and root/include for the corresponding variables. Classes work, but “moving” across the disk is not controlled.
This helped for .dir in this combination (.!) . The .!dir-command also works outside of c:\root\bin (for example, like .!dir d:\ ) .
Still, there is a problem changing folders and/or the disk - .cd-command. Only c:\root\bin is kept all the time.
This can be seen in the attached PrtScr.
P.S. I just now realized that in “x86_Native…” I can only “move” in the c-disk limits, however, to any depth. And I can look the contents of other discs\folder\folder.
In this situation It would be enough to go to the internal folder in c:\root\bin\user
I will test this situation with c-disk of “x86_Native…” on other types MVS.
To change the current directory, use TSystem::cd() e.g.: gSystem->cd("d:\\")
EDIT: BTW, the system commands like dir and cd begin with a dot and exclamation mark .! see at the end of the help with the .help command:
root [0] .help
Cling (C/C++ interpreter) meta commands usage
All commands must be preceded by a '.', except
for the evaluation statement { }
==============================================================================
Syntax: .Command [arg0 arg1 ... argN]
.L <filename> - Load the given file or library
.(x|X) <filename>[(args)] - Same as .L and runs a function with
signature: ret_type filename(args)
.> <filename> - Redirect command to a given file
'>' or '1>' - Redirects the stdout stream only
'2>' - Redirects the stderr stream only
'&>' (or '2>&1') - Redirects both stdout and stderr
'>>' - Appends to the given file
.undo [n] - Unloads the last 'n' inputs lines
.U <filename> - Unloads the given file
.(I|include) [path] - Shows all include paths. If a path is given,
adds the path to the include paths.
.O <level> - Sets the optimization level (0-3)
If no level is given, prints the current setting.
.class <name> - Prints out class <name> in a CINT-like style (one-level).
If no name is given, prints out list of all classes.
.Class <name> - Prints out class <name> in a CINT-like style (all-levels).
If no name is given, prints out list of all classes.
.namespace - Prints list of all known namespaces
.typedef <name> - Prints out typedef <name> in a CINT-like style
If no name is given, prints out list of all typedefs.
.files - Prints names of all included (parsed) files
.fileEx - Prints out included (parsed) file statistics
as well as a list of their names
.g <var> - Prints out information about global variable
'var' - if no name is given, print them all
.@ - Cancels and ignores the multiline input
.rawInput [0|1] - Toggle wrapping and printing the
execution results of the input
.dynamicExtensions [0|1] - Toggles the use of the dynamic scopes
and the late binding
.debug <level> - Generates debug symbols (level is optional, 0 to disable)
.printDebug [0|1] - Toggles the printing of input's corresponding
state changes
.storeState <filename> - Store the interpreter's state to a given file
.compareState <filename> - Compare the interpreter's state with the one
saved in a given file
.stats [name] - Show stats for internal data structures
'ast' abstract syntax tree stats
'asttree [filter]' abstract syntax tree layout
'decl' dump ast declarations
'undo' show undo stack
.T <filePath> <comment> - Generate autoload map
.trace <repr> <id> - Dump trace of requested respresentation
(see .stats arguments for <repr>)
.help - Shows this information (also .?)
.q - Exit the program
ROOT special commands.
==============================================================================
.L <filename>[flags]: load the given file with optional flags like
+ to compile or ++ to force recompile.
Type .? TSystem::CompileMacro for a list of all flags.
.(x|X) <filename>[flags](args) :
same as .L <filename>[flags] and runs then a function
with signature: ret_type filename(args).
.credits : show credits
.demo : launch GUI demo
.help Class::Member : open reference guide for that class member (or .?).
Specifying '::Member' is optional.
.help edit : show line editing shortcuts (or .?)
.license : show license
.ls : list contents of current TDirectory
.pwd : show current TDirectory, pad and style
.quit (or .exit) : quit ROOT (long form of .q)
.R [user@]host[:dir] [-l user] [-d dbg] [script] :
launch process in a remote host
.qqq : quit ROOT - mandatory
.qqqqq : exit process immediately
.qqqqqqq : abort process
.which [file] : show path of macro file
.![OS_command] : execute OS-specific shell command
.!root -? : print ROOT usage (CLI options)
Happened. I got to another disk, sorted the data - it turns out.
A bit unusual is the fundamental meaning of using “ . “ and/or “ → “ compared to version 5 in interactive mode, but this is a matter of further practice.
As for gSystem->cd(“d:\”) - it’s my fault, sorry, I’ll study the description v6 too.
Many thanks for the clarity and efficiency!
All the best!
P.S. Seeing the typed and displayed text in the letter, I realized/remembered what the combination of quotes and oblique lines means (in name). Thank you!