Go back and accept only list of chars
This commit is contained in:
@@ -39,13 +39,9 @@ unsetenv(Key) :-
|
|||||||
|
|
||||||
shell(Command) :- shell(Command, 0).
|
shell(Command) :- shell(Command, 0).
|
||||||
shell(Command, Status) :-
|
shell(Command, Status) :-
|
||||||
( atom_si(Command) ->
|
must_be_chars(Command),
|
||||||
atom_chars(Command, CommandChars)
|
|
||||||
; Command = CommandChars
|
|
||||||
),
|
|
||||||
must_be_chars(CommandChars),
|
|
||||||
can_be(integer, Status),
|
can_be(integer, Status),
|
||||||
'$shell'(CommandChars, Status).
|
'$shell'(Command, Status).
|
||||||
|
|
||||||
pid(PID) :-
|
pid(PID) :-
|
||||||
can_be(integer, PID),
|
can_be(integer, PID),
|
||||||
|
|||||||
Reference in New Issue
Block a user