-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Description
It would be great to have a printf. I'm doing fancy escaping stuff where I want to evaluate a variable and quote it so PostgreSQL can execute the query correctly.
Describe The Solution You'd Like
At least basic printf syntax
Code Sample
printf '%s \'%s\' "%s"' 'foo haz' "${can}" barAlternatives like std::string::Concat are unfriendly:
$ duck
a = set 5
c = concat '"' ${a} '"'
echo ${c}
'"'5'"'
q = set '
e = concat ${q} ${a} ${q}
echo ${e}
'5'Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request