[dslinux-devel] bash instead of sh in Makefile.xsh
Stefan Sperling
stsp at stsp.name
Wed Jun 6 17:15:12 CEST 2007
On Wed, Jun 06, 2007 at 04:18:39PM +0200, Nanomad wrote:
> Since ubuntu makes use of dash instead of plain sh (don't ask me
> why...). This leads to a corss-compilation shell prompt like:
> -xsh- \w >
> which is pretty ugly.
> I suggest to make Makefile.xsh run bash instead of sh. Very simple to
> adopt and with no drawbacks (AFAIK).
>
>
> --- Makefile.xsh (revisione 1783)
> +++ Makefile.xsh (copia locale)
> @@ -27,4 +27,4 @@
> @echo "------------------------------------------------------------------------"
> @(echo "$(PATH)" | grep toolchain) 2>&1 >/dev/null || \
> echo "Remember to put the toolchain binaries in your PATH!"
> - @env PS1=" -xsh- \w > " /bin/sh
> + @env PS1=" -xsh- \w > " /bin/bash --posix
What about this instead?
Index: Makefile.xsh
===================================================================
--- Makefile.xsh (revision 1776)
+++ Makefile.xsh (working copy)
@@ -27,4 +27,4 @@
@echo "------------------------------------------------------------------------"
@(echo "$(PATH)" | grep toolchain) 2>&1 >/dev/null || \
echo "Remember to put the toolchain binaries in your PATH!"
- @env PS1=" -xsh- \w > " /bin/sh
+ @env PS1=" -xsh- \w > " $$SHELL
--
stefan
http://stsp.name PGP Key: 0xF59D25F0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20070606/f7384c11/attachment.pgp
More information about the dslinux-devel
mailing list