Recording the Arguments of a Reproducible Command

A display of a command line should preserve argument boundaries or describe the original argument array directly.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace an ambiguous display
  2. Redact private values
  3. Store actual arguments before making them readable
  4. Preserve reproducibility without exposing irrelevant values

Trace an ambiguous display

Joining three argument strings with spaces can make weekly report.csv look like two separate values. A receiver can still have seen only one. Direct process argument lists explain why this array is the useful evidence.

Redact private values

If one argument contains a private token or path, record its role or an invented replacement. Preserve other details needed to reproduce the problem. Synthetic data provides that separation.[1]

Store actual arguments before making them readable

A process call can pass executable, filename and filter as three distinct values. Joining them with spaces can obscure the filename's embedded space. Record the structured arguments first and generate a display suited to the shell only where needed. See argument-list invocation.

Executable: convert
Argument 1: blue notes.txt
Argument 2: --summary
Record directory and non-sensitive settings as separate context

Preserve reproducibility without exposing irrelevant values

Use placeholders for secrets and maintain the number and roles of arguments when illustrating the call. Record the effective working directory and runtime version where they change behavior. Verify a synthetic replay.

References

  1. The Open Group, POSIX Shell Command Language ↩