Technical article 125419

Openserver 5.0.7 - PATH= line is wrong in zdiff, zgrep, & zmore

OpenServer 5.0.7

Written · Last revised

Problem

The PATH= statements in the shell scripts zdiff, zgrep, and zmore read

PATH="/usr/bin:$PATH"; export PATH
They should read
PATH="/bin:$PATH"; export PATH

as gzip is in /bin, not /usr/bin.

This is unlikely to be a problem running the commands as most users will have /bin in their PATH and will find the command. Problems could arise, however, if the user is running with a very restrictive PATH or if there are alternate versions of gzip on the system in other locations that get accessed prior to /bin due to the user's PATH setup.

Solution

This has been reported to SCO Engineering.

As a workaround, simply edit these files with your favorite text editor and change the PATH line to read:

PATH="/bin:$PATH"; export PATH

From the Xinuos technical article database, record 125419. Reproduced with permission. The original is at www.sco.com/ta/125419, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.