blob: fa76ee9bdd30df4feec6632910b85cf8a11d769d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001This value is used to determine CONFIG_SHELL and SHELL which may get exported into
2scripts shared via sstate onto other systems.
3
4Some systems have /bin/sh -> dash and others /bin/sh -> bash. Bash is preferred
5but sometimes we can sometimes end up exporting /bin/sh yet use bashisms.
6
7This patch puts bash first in the search results which avoids the bash/dash confusion.
8
9RP 2012/9/23
10
11Upstream-Status: Inappropriate [OE specific configuration]
12
13Index: autoconf-2.69/lib/m4sugar/m4sh.m4
14===================================================================
15--- autoconf-2.69.orig/lib/m4sugar/m4sh.m4 2012-03-07 17:35:26.000000000 +0000
16+++ autoconf-2.69/lib/m4sugar/m4sh.m4 2013-09-23 16:12:38.853597515 +0000
17@@ -229,7 +229,7 @@
18 [_AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
19 [case $as_dir in @%:@(
20 /*)
21- for as_base in sh bash ksh sh5; do
22+ for as_base in bash sh ksh sh5; do
23 # Try only shells that exist, to save several forks.
24 as_shell=$as_dir/$as_base
25 AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } &&