pbclientmode

  • Version 3.5 and earlier: pbclientmode variable not available.
  • Version 4.0 and later: pbclientmode variable available.

String, read only

pbclientmode specifies the specific mode for a request. It is set as shown in the following table.

How Invoked pbclientmode Value
pbrun run
pbssh pbssh
pbguid pbguid
pbksh or pbsh startup shell start
Shell built-in from pbksh or pbsh shell builtin
Command from shell command line or argument shell command
Redirection in a shell command (<, >, or >>) shell redirect

A string as described above.

if (pbclientmode == "shell start") shellcheckbuiltins = true;
else if (pbclientmode == "shell redirect" && argv[1] == "/dev/null")
reject;