escapeshellarg escapeshellarg -- Escapes a variable as a shell argument. escapeshellarg escapes variable's content so as to use it as a shell argument. Usage // 1. Function form. void func::escapeshellarg(string* variable)