Closed qmanjr5 closed 4 years ago
I was able to achieve what I was looking to do by redirecting stderr to stdout
echo -n t n 2>&1
I believe this is something that should be fixed, unless it's specifically designed like this. If so, why?
internally the function puts
is used. Try this:
#cosa.rb
puts "hello"
then
echo -n $(ruby cosa.rb)
I'll close this for now
When I'm checked into a timesheet, doing echo -n $(t n) (or some variations thereof) result in no newline at the end, as I want. However, when you're currently not checked into a sheet, the newline is still there