From the attached file:
From <https://unix.stackexchange.com/a/118310/13260> I see that csh does not have this operator, so how should I modify the first command?
I'm confused, because the relevant part of my first command did seem to follow that syntax.
My preferred shell for root is, and will remain: /bin/csh
Background
The recent
Code:
root@mowa219-gjp4-8570p-freebsd:/usr/src # cd /usr/src && time make -j2 WITHOUT_TOOLCHAIN=yes buildworld > buildworld.log 2>&1 && make -j2 buildkernel KERNCONF=GENERIC-NODEBUG
Ambiguous output redirect.
root@mowa219-gjp4-8570p-freebsd:/usr/src # sh
# cd /usr/src && time make -j2 WITHOUT_TOOLCHAIN=yes buildworld > buildworld.log 2>&1 && make -j2 buildkernel KERNCONF=GENERIC-NODEBUG
2>&1
From <https://unix.stackexchange.com/a/118310/13260> I see that csh does not have this operator, so how should I modify the first command?
If you want to redirect both stdout and stderr portably, the syntax is
cmd > file 2>&1
I'm confused, because the relevant part of my first command did seem to follow that syntax.
My preferred shell for root is, and will remain: /bin/csh
Background
The recent
WITHOUT_TOOLCHAIN=yes
hint under <https://www.freebsd.org/status/report-2021-07-2021-09/#_current_compilation_time_analysis>.