ksh: /etc/profile.d/PackageKit.sh[14]: syntax error: '=~' unexpected operator/operand when logging into a mksh version of ksh shell.

Solution In Progress - Updated -


  • mksh
  • PackageKit
  • PackageKit-command-not-found


  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In