On Tue, Sep 20, 2022 at 11:19:38AM +0000, Klemens Nanni wrote:
> sh(1) happily accepts newlines inside double quotes just like in the
> script itself:
> 
>       $ sh -c "echo foo
>       > echo bar"
>       foo
>       bar
> 
> So no need to squash things into a single line as is required in make(1)
> files.
> 
> OK? (for after release)

Ping.


Index: install.sub
===================================================================
RCS file: /cvs/src/distrib/miniroot/install.sub,v
retrieving revision 1.1207
diff -u -p -r1.1207 install.sub
--- install.sub 27 Sep 2022 12:28:25 -0000      1.1207
+++ install.sub 4 Oct 2022 18:07:46 -0000
@@ -2927,10 +2927,10 @@ __EOT
                mkdir -m 700 -p $_kernel_dir
                tar -C $_kernel_dir -xzf $_kernel_dir.tgz $_kernel
                rm -f $_kernel_dir.tgz
-               chroot /mnt /bin/ksh -e -c "cd ${_kernel_dir#/mnt}/$_kernel; \
-                       make newbsd; \
-                       [ -f /etc/bsd.re-config ] && \
-                           config -e -c /etc/bsd.re-config -f bsd; \
+               chroot /mnt /bin/ksh -e -c "cd ${_kernel_dir#/mnt}/$_kernel
+                       make newbsd
+                       [ -f /etc/bsd.re-config ] &&
+                               config -e -c /etc/bsd.re-config -f bsd
                        make newinstall"
                ) >/dev/null 2>&1 && echo " done." || echo " failed."
        fi

Reply via email to