我想将 make 命令的输出和错误流重定向到文件。
以下命令
make 1>&2 ~/tmp/build.log
抛出以下错误
make: Nothing to be done for `/Users/m/tmp/build.log'.
EDIT:-
Tried
make 2>&1 ~/tmp/build.log
and
make ~/tmp/build.log 2>&1
这给出了与上面相同的错误消息。
我正在使用 mac-leopard 操作系统
$ bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
Tietos-iMac-2:qt-build ptools$ sh --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
应该
make 2>&1 > ~/tmp/build.log
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)