bug-bash
[Top][All Lists]
Advanced

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

address@hidden: don't quote unless necessary?


From: Clark Wang
Subject: address@hidden: don't quote unless necessary?
Date: Mon, 30 Oct 2017 10:48:10 +0800

See following example:

[STEP 100] # echo $BASH_VERSION
4.4.12(2)-release
[STEP 101] # v=abc
[STEP 102] # printf '%q\n' $v
abc
[STEP 103] # printf '%s\n' "address@hidden"
'abc'
[STEP 104] #

Is it possible to not quote the result since there's no special chars in
the string? I would expect address@hidden to produce more concise result 
compared
to `printf %q' since it's the new syntax. :)

-clark


reply via email to

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