Is this any different:

FOO=`vagrant ssh head0001 -c 'echo -n 5'`



On Sunday, March 23, 2014 8:38:59 PM UTC-4, Simon McCartney wrote:
>
> I'm not sure if this is a Vagrant, VirtualBox or OSX anomaly, but it looks 
> like vagrant is appending \r to output, which is breaking some light 
> automation we're trying to do in vagrant:
>
> $ vagrant -v
> Vagrant 1.4.2
> $ FOO=`vagrant ssh head0001 -c 'echo 5'`
> Connection to 127.0.0.1 closed.
> $ expr $FOO + 0
> expr: not a decimal number: '5\r'
> $ vagrant ssh head0001 -c "uname -a"
> Linux ps-dev-dbhead0001 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 
> 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> Connection to 127.0.0.1 closed.
> $ vagrant ssh head0001 -c "cat /etc/lsb-release"
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=12.04
> DISTRIB_CODENAME=precise
> DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
> Connection to 127.0.0.1 closed.
> $
>
>
> The host is an MBPr running Mavericks, with virtual box 4.3.6
>
> Any ideas what's going on?
>
> Simon.
> -- 
> Simon McCartney
> E: [email protected] <javascript:> 
> M: +44 7710 836 915
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to