cleanup
This commit is contained in:
parent
d8b3041e85
commit
c6c224bd12
2 changed files with 2 additions and 6 deletions
|
|
@ -653,8 +653,6 @@ bool debashify_array_set(cmd* in, debashify_params* params)
|
||||||
it->second = new arg("=");
|
it->second = new arg("=");
|
||||||
it->second->add(sb);
|
it->second->add(sb);
|
||||||
has_replaced=true;
|
has_replaced=true;
|
||||||
|
|
||||||
// throw std::runtime_error("Cannot debashify VAR+=()");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return has_replaced;
|
return has_replaced;
|
||||||
|
|
@ -827,8 +825,6 @@ bool debashify_var(variable* in, debashify_params* params)
|
||||||
{
|
{
|
||||||
if(in->is_manip && in->precedence && in->manip->string() == "!")
|
if(in->is_manip && in->precedence && in->manip->string() == "!")
|
||||||
throw std::runtime_error("Cannot debashify ${!VAR}");
|
throw std::runtime_error("Cannot debashify ${!VAR}");
|
||||||
if(in->varname == "RANDOM")
|
|
||||||
throw std::runtime_error("Cannot debashify $RANDOM");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ztd::option_set options( {
|
||||||
ztd::option("remove-unused", false, "Remove unused functions and variables"),
|
ztd::option("remove-unused", false, "Remove unused functions and variables"),
|
||||||
ztd::option("list-cmd", false, "List all commands invoked in the script"),
|
ztd::option("list-cmd", false, "List all commands invoked in the script"),
|
||||||
ztd::option("\r [Variable processing]"),
|
ztd::option("\r [Variable processing]"),
|
||||||
ztd::option("exclude-var", true, "List of matching regex to ignore for variable processing", "list"),
|
ztd::option("exclude-var", true, "List of matching regex to ignore for variable processing, separated by comma", "list"),
|
||||||
ztd::option("no-exclude-reserved",false, "Don't exclude reserved variables"),
|
ztd::option("no-exclude-reserved",false, "Don't exclude reserved variables"),
|
||||||
ztd::option("minify-var", false, "Minify variable names"),
|
ztd::option("minify-var", false, "Minify variable names"),
|
||||||
ztd::option("list-var", false, "List all variables set and invoked in the script"),
|
ztd::option("list-var", false, "List all variables set and invoked in the script"),
|
||||||
|
|
@ -45,7 +45,7 @@ ztd::option_set options( {
|
||||||
ztd::option("list-var-call", false, "List all variables invoked in the script"),
|
ztd::option("list-var-call", false, "List all variables invoked in the script"),
|
||||||
ztd::option("unset-var", false, "Add 'unset' to all variables at the start of the script to avoid environment interference"),
|
ztd::option("unset-var", false, "Add 'unset' to all variables at the start of the script to avoid environment interference"),
|
||||||
ztd::option("\r [Function processing]"),
|
ztd::option("\r [Function processing]"),
|
||||||
ztd::option("exclude-fct", true, "List of matching regex to ignore for function processing", "list"),
|
ztd::option("exclude-fct", true, "List of matching regex to ignore for function processing, separated by comma", "list"),
|
||||||
ztd::option("minify-fct", false, "Minify function names"),
|
ztd::option("minify-fct", false, "Minify function names"),
|
||||||
ztd::option("list-fct", false, "List all functions defined in the script")
|
ztd::option("list-fct", false, "List all functions defined in the script")
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue