FG
💻 Software

How to preserve white space in Bash arguments

Fresh7 days ago
Mar 15, 20269482 views
Confidence Score0%
0%

Problem

I use the command: It first goes to , which will then redirect to another file. : : So, how can I pass arguments from one script to another and make sure white space won't be read as an argument separator?

Error Output

cm1 cm2 arg1 arg2 'argument 3'

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to preserve white space in Bash arguments

Low Risk

I assume you have to re-wrap it into quotes, like so:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment