math enabled community low v1.0.0

bc

Arbitrary precision calculator language that can read files via -s flag, leaking content as errors.

📋 Live Preview
bc {s}
📎 s
bc {s}

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
math.calculate

Parameters

Name Type Required Default Description Aliases
s string No - Load file and suppress normal output -s

Contract

Inputs

system.file.path

Path to file to read

Outputs

system.file.content

File content leaked as error messages

Side effects:

Workflow Edges

Produces

system.file.content

Consumes

system.file.path

Resource Profile

ResourceValue
CPUlow
Memory4 MB
Networklow
Disk I/Olow

Examples

Read arbitrary file via -s flag, content appears as error messages

bc -s /path/to/input-file
quit

Documentation

bc — Calculator Language

bc is an arbitrary precision calculator language. The -s flag loads a file for processing, and its content appears in error messages when parsing fails, making it useful for file read when used with elevated privileges.

References