help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Transform strings with special characters so that the st


From: Peng Yu
Subject: Re: [Help-bash] Transform strings with special characters so that the strings don't need to be quoted?
Date: Wed, 25 Mar 2015 20:56:58 -0500

>               %q     causes printf to output the corresponding argument in a
>                      format that can be reused as shell input.

Why $'\0' is contracted to an empty string?

printf %q $'\0'

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]