&> is not valid on windows

The command "vagrant up --debug &> vagrant.log" is not valid on Windows.
On Windows, you need to do: vagrant up --debug > vagrant.log 2>&1
This commit is contained in:
danielmenezesbr 2016-12-20 17:01:08 -02:00 committed by GitHub
parent a3b9d231ad
commit f66dd98d56
1 changed files with 6 additions and 1 deletions

View File

@ -58,9 +58,14 @@ option. For example:
$ vagrant up --debug $ vagrant up --debug
``` ```
If you are saving the output to a file, you may need to redirect stderr and On Linux and Mac, if you are saving the output to a file, you may need to redirect stderr and
stdout using `&>`: stdout using `&>`:
``` ```
$ vagrant up --debug &> vagrant.log $ vagrant up --debug &> vagrant.log
``` ```
On Windows:
```
$ vagrant up --debug > vagrant.log 2>&1
```