The following patch facilitates building under Caldera OpenServer 5.0.6.
Needed because -r fails on a symbolic link.

The original author will probably decide to use ${minusx} instead ...

Sincerely -- Mark Salyzyn

diff -bc shtool.orig shtool
*** shtool.orig Thu Apr  4 08:51:42 2002
--- shtool Thu Apr  4 08:39:56 2002
***************
*** 422,428 ****
                  paths=`echo $PATH | sed -e 's/:/ /g'`
                  for tool in tput tcout; do
                      for dir in $paths; do
!                         if [ -r "$dir/$tool" ]; then
                              for seq in bold md smso; do # 'smso' is last
                                  bold="`$dir/$tool $seq 2>/dev/null`"
                                  if [ ".$bold" != . ]; then
--- 422,428 ----
                  paths=`echo $PATH | sed -e 's/:/ /g'`
                  for tool in tput tcout; do
                      for dir in $paths; do
!                         if [ -x "$dir/$tool" ]; then
                              for seq in bold md smso; do # 'smso' is last
                                  bold="`$dir/$tool $seq 2>/dev/null`"
                                  if [ ".$bold" != . ]; then
***************
*** 1033,1039 ****
                 -e 's/:/ /g'`
      for name in gawk nawk awk; do
          for path in $paths; do
!             if [ -r "$path/$name" ]; then
                  awk="$path/$name"
                  break
              fi
--- 1033,1039 ----
                 -e 's/:/ /g'`
      for name in gawk nawk awk; do
          for path in $paths; do
!             if [ -x "$path/$name" ]; then
                  awk="$path/$name"
                  break
              fi
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to