Why such script:
x=xxx
y=yyy
printf -v var "%s %s" "$x" "$y"
printf $var
prints only:
xxx
While I expected:
xxx yyy
How to force printf
not ignore symbols after blank space?
Why such script:
x=xxx
y=yyy
printf -v var "%s %s" "$x" "$y"
printf $var
prints only:
xxx
While I expected:
xxx yyy
How to force printf
not ignore symbols after blank space?
How about
#!/bin/bash
x=xxx
y=yyy
var=`printf "%s %s" $x $y`
echo $var
?