This file is indexed.

/usr/share/doc/gxmessage/examples/gxman is in gxmessage 3.4.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
#! /bin/bash

## 
## Usage: %PROG% [OPTIONS] [PAGE[(SECTION)]]
## 
##   Manual page viewer
## 
## Options:
##   -c            Center the window
##   -f COLOUR     Foreground colour
##   -b COLOUR     Background colour
##   -g GEOMETRY   Window size (e.g. 800x600)
##   -s FONT       Message font or style (e.g. 'serif 14')
## 
# trm 2006-11-16

# I, the Copyright holder of this work, hereby release it into the Public
# Domain. This applies worldwide. In case this is not legally possible, I
# grant anyone the right to use this work for any purpose, without any
# conditions, unless such conditions are required by law.
#
# 2009 Timothy Richard Musson <trmusson@gmail.com>


PROG=$(basename $0)
TMPFILE=${TMPDIR:-/tmp}/$$.$PROG
EX_USAGE=64

MSG_TITLE=$PROG
MSG_FONT=monospace
MSG_FG=
MSG_BG=
MSG_GEOM=


trap 'rm -f "$TMPFILE"' EXIT


invocationError ()
{
  echo "Try '$PROG -h'" >&2
  exit $EX_USAGE
}


showUsage ()
{
  sed -n '/^##/s/^## //p' $0 | sed -e "s#%PROG%#${PROG}#g"
  exit
}


while getopts 'b:cf:g:hs:' Option
do
  case $Option in
  b) MSG_BG=$OPTARG ;;
  c) CENTER=yes ;;
  f) MSG_FG=$OPTARG ;;
  g) MSG_GEOM=$OPTARG ;;
  h) showUsage ;;
  s) MSG_FONT=$OPTARG ;;
  *) invocationError ;;
  esac
done
shift $(($OPTIND - 1))
[ $# -gt 1 ] && invocationError

page=$1

[ -z "$page" ] && cat <<-EOF > "$TMPFILE"
	Type the name of a manual page into the box below, then
	press ENTER. To specify a manual from a particular section,
	give the section in backets. For example: printf(3)
	
	To quit, leave the box empty or press ESC.
	EOF

while :
do

  if [ -n "$page" ]
  then
    i=$(expr index "$page" '\(')
    if [ "$i" -gt 0 ]
    then
      temp=${page#*(}
      sect=${temp%)*}
      page=${page%(*}
    else
      sect=
    fi
    man $sect "$page" 2>&1 | col -b > "$TMPFILE"
  fi

  page=$(gxmessage ${MSG_FONT:+-fn "$MSG_FONT"}   \
                   ${MSG_FG:+-fg "$MSG_FG"}       \
                   ${MSG_BG:+-bg "$MSG_BG"}       \
                   ${MSG_GEOM:+-geom "$MSG_GEOM"} \
                   ${CENTER:+-center}             \
                   -title "$MSG_TITLE"            \
                   -entrytext "$word"             \
                   -buttons ""                    \
                   -file "$TMPFILE")

  [ $? -eq 1 -o -z "$page" ] && exit

done