Implement shell/1 and shell/2
This commit is contained in:
@@ -301,6 +301,7 @@ pub(crate) enum SystemClauseType {
|
||||
GetEnv,
|
||||
SetEnv,
|
||||
UnsetEnv,
|
||||
Shell,
|
||||
PID,
|
||||
CharsBase64,
|
||||
DevourWhitespace,
|
||||
@@ -592,6 +593,7 @@ impl SystemClauseType {
|
||||
&SystemClauseType::GetEnv => clause_name!("$getenv"),
|
||||
&SystemClauseType::SetEnv => clause_name!("$setenv"),
|
||||
&SystemClauseType::UnsetEnv => clause_name!("$unsetenv"),
|
||||
&SystemClauseType::Shell => clause_name!("$shell"),
|
||||
&SystemClauseType::PID => clause_name!("$pid"),
|
||||
&SystemClauseType::CharsBase64 => clause_name!("$chars_base64"),
|
||||
&SystemClauseType::LoadLibraryAsStream => clause_name!("$load_library_as_stream"),
|
||||
@@ -813,6 +815,7 @@ impl SystemClauseType {
|
||||
("$getenv", 2) => Some(SystemClauseType::GetEnv),
|
||||
("$setenv", 2) => Some(SystemClauseType::SetEnv),
|
||||
("$unsetenv", 1) => Some(SystemClauseType::UnsetEnv),
|
||||
("$shell", 2) => Some(SystemClauseType::Shell),
|
||||
("$pid", 1) => Some(SystemClauseType::PID),
|
||||
("$chars_base64", 4) => Some(SystemClauseType::CharsBase64),
|
||||
("$load_library_as_stream", 3) => Some(SystemClauseType::LoadLibraryAsStream),
|
||||
|
||||
Reference in New Issue
Block a user