.\" .\" Copyright (c) 1994 David I. Bell and Landon Curt Noll .\" Permission is granted to use, distribute, or modify this source, .\" provided that this copyright notice remains intact. .\" .\" calculator by David I. Bell .\" man page by Landon Noll .TH calc 1 "^..^" "15nov93" .SH NAME calc \- arbitrary precision calculator .SH SYNOPSIS \fIcalc\fP [\fI\-h\fP] [\fI\-m mode\fP] [\fI\-p\fP] [\fI\-q\fP] [\fI\-u\fP] [\fI\-v\fP] [\fIcalc_cmd \&.\|.\|.\fp] .SH DESCRIPTION \& .br CALC COMMAND LINE .PP .TP \fI\-h\fP Print a help message. This option implies \fI \-q\fP. This is equivalent to the calc command \fIhelp help\fP. The help facility is disabled unless the \fImode\fP is 5 or 7. See \fI\-m\fP below. .sp .TP \fI\-m mode\fP This flag sets the permission mode of calc. It controls the ability for \fIcalc\fP to open files and execute programs. \fIMode\fP may be a number from 0 to 7. .sp The \fImode\fP value is interpreted in a way similar to that of the \fRchmod(1)\fP octal mode: .sp .in +0.5i .nf 0 do not open any file, do not execute progs 1 do not open any file 2 do not open files for reading, do not execute progs 3 do not open files for reading 4 do not open files for writing, do not execute progs 5 do not open files for writing 6 do not execute any program 7 allow everything (default mode) .fi .in -0.5i .sp If one wished to run calc from a privledged user, one might want to use \fI\-m 0\fP in an effort to make calc more secure. .sp \fIMode\fP bits for reading and writing apply only on an open. Files already open are not effected. Thus if one wanted to use the \fI\-m 0\fP in an effort to make \fIcalc\fP more secure, but still wanted to read and write a specific file, one might want to do: .sp .in +0.5i .nf \fRcalc \-m 0 3