U
Une Bévue
@prefix is a string i want to put on the pasteboard (Mac OS X)
if from zsh :
echo -n "${prefix}" | pbcopy
this works well, i get the prefix in the pasteboard.
if from ruby :
`echo -n "#{@prefix}" | pbcopy`
instead of getting @prefix, i get :
-n @prefix\n
with an ending return i wanted to avoid with the "-n" arg to echo.
if from zsh :
echo -n "${prefix}" | pbcopy
this works well, i get the prefix in the pasteboard.
if from ruby :
`echo -n "#{@prefix}" | pbcopy`
instead of getting @prefix, i get :
-n @prefix\n
with an ending return i wanted to avoid with the "-n" arg to echo.