summary refs log tree commit diff
path: root/bin/man1/bit.1
blob: b61bc70449db441b49c116681491f068dfa10f6b (plain) (blame)
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
.Dd June 7, 2019
.Dt BIT 1
.Os
.
.Sh NAME
.Nm bit
.Nd a calculator
.
.Sh SYNOPSIS
.Nm
.
.Sh DESCRIPTION
.Nm
is an integer calculator.
Its syntax resembles that of C expressions,
with the following changes:
.
.Bl -bullet
.It
Underscores are allowed in integer literals.
.It
The
.Sy 0b
prefix is used for binary literals.
.It
The
.Sy ->
operator is used for arithmetic shift.
.It
The postfix operators
.Sy K ,
.Sy M ,
.Sy G ,
.Sy T
are used as constant multipliers.
.It
Single-letter (lower case) variables
can be assigned.
The variable
.Sy _
stores the previous result.
.El
.
.Sh SEE ALSO
.Xr operator 7
200'>2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer getenv() returns a NULL pointer if the specified variable name cannot be found in the environment. However, some setenv() implementations crash if a NULL pointer is passed as second argument. Only restore variables that are not NULL. See commit d96d2c98ebc4c2d3765f5b35c4142e0e828a421b for a related patch. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer