This file is indexed.

/usr/share/calc/help/pound is in apcalc-common 2.12.4.4-3.

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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
NAME
    #

SYNOPSIS
    #!/usr/local/src/cmd/calc/calc -q -f
    # x
    x # y
    ## comment

TYPES
    x, y		integer or real

    return		integer (uniary operator case)
			integer or real (binary operator case)

DESCRIPTION
    The pound sign or sharp sign "#" has special meaning in calc.

    As a uniary operator:

    	# value

    returns the number of 1 bits, or pop-count of the absolute value of
    the numerator (abs(num(value))).  Therefore when x is a non-negative
    integer , # x is the pop-count of x.  And thus when x is a negative
    integer, # x returns the pop-count of abs(x).  And in the general
    case when x is a real, # x returns the pop-count of abs(num(x)).

    As a binary operator:

	x # y

    returns abs(x-y), the absolute value of the difference.

    When two or more pound signs in a row start a comment:

	## this is a comment
	### this is also a comment
	print "this will print";  ## but this will not because it is a comment

    A pound sign followed by a bang also starts a comment:

	#! strictly speaking, this is a comment
	print "this is correct but not recommended" #! acts like ##

    On POSIX / Un*X / Linux / BSD conforming systems, when an executable
    starts with the two bytes # and !, the remainder of the 1st line
    (up to an operating system imposed limit) is taken to be the path
    to the shell (plus shell arguments) that is to be executed.  The
    kernel appends the filename of the executable as a final argument
    to the shell.

    For example, of an executable file contains:

    	#!/usr/local/src/cmd/calc/calc -q -f
	/* NOTE: The #! above must start in column 1 of the 1st line */
	/* 	 The 1st line must end with -f */
	## Single # shell comments don't work, use two or more
	print "2+2 =", 2+2;

    When the above file it is executed by the kernel, it will print:

	2+2 = 4

    Such files are known to calc as cscripts.  See "help cscript"
    for examples.

    It is suggested that the -q be added to the first line to
    disable the reading of the startup scripts.  It is not mandatory.

    The last argument of the first line must be -f without the filename
    because the kernel will supply the cscript filename as a final
    argument.  The final -f also implies -s.  See "help usage" for
    more information.


EXAMPLE
    ; #3
	2
    ; #3.5
	3
    ; 4 # 5
	1
    ; 5 # 4
	1

    ; pi() # exp(1)
	0.4233108251307480031
    ; exp(1) # pi()
	0.4233108251307480031

    ; ## this is a comment

LIMITS
    none

LINK LIBRARY
    none

SEE ALSO
    cscript, unexpected, usage

## Copyright (C) 2007  Landon Curt Noll
##
## Calc is open software; you can redistribute it and/or modify it under
## the terms of the version 2.1 of the GNU Lesser General Public License
## as published by the Free Software Foundation.
##
## Calc is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
## or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU Lesser General
## Public License for more details.
##
## A copy of version 2.1 of the GNU Lesser General Public License is
## distributed with calc under the filename COPYING-LGPL.  You should have
## received a copy with calc; if not, write to Free Software Foundation, Inc.
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
##
## @(#) $Revision: 30.1 $
## @(#) $Id: pound,v 30.1 2007/03/16 11:10:42 chongo Exp $
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/pound,v $
##
## Under source code control:	2007/02/06 14:09
## File existed as early as:	2007
##
## chongo <was here> /\oo/\	http://www.isthe.com/chongo/
## Share and enjoy!  :-)	http://www.isthe.com/chongo/tech/comp/calc/