Defines aliases:
#include <string>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstdio>
namespace {
{
}
{
}
{
if (s.empty())
return "''";
std::replace(
q.begin(),
q.end(),
'"',
'\'');
} else {
std::string out;
out.reserve(s.size() + 2);
out.push_back('\'');
out += "'\"'\"'";
else
}
out.push_back('\'');
return out;
}
}
{
if (
const char *
v = std::getenv(
name))
return {};
}
{
}
}
void edit(
const char *file)
{
const std::string
f = (file ? file :
"");
else
cmd =
"start notepad " +
qf;
else
} else {
else
MaybeBackground(
"(command -v xdg-open >/dev/null 2>&1 && xdg-open " +
qf +
") || (xterm -e vi " +
qf +
")");
}
}
void ls(const char *path = nullptr)
{
if (path && *path) {
}
}
void dir(const char *path = nullptr)
{
if (path && *path) {
}
}
const char *pwd()
{
}
const char *cd(const char *path = nullptr)
{
if (path && *path)
return pwd();
}
{
std::printf("in bexec dir=%s\n", pwd());
std::printf(
"Processing benchmark: %s\n",
macro);
return;
}
}
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
const char * GetName() const override
Returns name of object.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual Bool_t ChangeDirectory(const char *path)
Change directory.
virtual const char * WorkingDirectory()
Return working directory.
- Author
- Rene Brun
Definition in file rootalias.C.