* [PATCH v2] scripts: use env to invoke bash
@ 2022-12-09 6:13 Himanshu Chauhan
2022-12-09 9:11 ` Xiang W
2022-12-10 16:24 ` Anup Patel
0 siblings, 2 replies; 3+ messages in thread
From: Himanshu Chauhan @ 2022-12-09 6:13 UTC (permalink / raw)
To: opensbi
Not all systems have bash at a fixed location like /bin/bash.
FreeBSD, for example, would typically have it at /usr/local/bin/bash.
When building OpenSBI on freebsd system, the build breaks.
Its advisable to use: #!/usr/bin/env bash
[v2] In this version:
* Change remaining two scripts to use env
Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
---
scripts/carray.sh | 2 +-
scripts/create-binary-archive.sh | 2 +-
scripts/d2c.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/carray.sh b/scripts/carray.sh
index 0c52bd6..13f9d36 100755
--- a/scripts/carray.sh
+++ b/scripts/carray.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function usage()
{
diff --git a/scripts/create-binary-archive.sh b/scripts/create-binary-archive.sh
index 261a45a..63781e1 100755
--- a/scripts/create-binary-archive.sh
+++ b/scripts/create-binary-archive.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function usage()
{
diff --git a/scripts/d2c.sh b/scripts/d2c.sh
index 33a3ccf..c411fcd 100755
--- a/scripts/d2c.sh
+++ b/scripts/d2c.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function usage()
{
--
2.38.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH v2] scripts: use env to invoke bash
2022-12-09 6:13 [PATCH v2] scripts: use env to invoke bash Himanshu Chauhan
@ 2022-12-09 9:11 ` Xiang W
2022-12-10 16:24 ` Anup Patel
1 sibling, 0 replies; 3+ messages in thread
From: Xiang W @ 2022-12-09 9:11 UTC (permalink / raw)
To: opensbi
? 2022-12-09???? 11:43 +0530?Himanshu Chauhan???
> Not all systems have bash at a fixed location like /bin/bash.
> FreeBSD, for example, would typically have it at /usr/local/bin/bash.
> When building OpenSBI on freebsd system, the build breaks.
>
> Its advisable to use: #!/usr/bin/env bash
>
> [v2] In this version:
> * Change remaining two scripts to use env
>
> Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
LGTM
Reviewed-by: Xiang W <wxjstz@126.com>
> ---
> ?scripts/carray.sh??????????????? | 2 +-
> ?scripts/create-binary-archive.sh | 2 +-
> ?scripts/d2c.sh?????????????????? | 2 +-
> ?3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/carray.sh b/scripts/carray.sh
> index 0c52bd6..13f9d36 100755
> --- a/scripts/carray.sh
> +++ b/scripts/carray.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
> ?
> ?function usage()
> ?{
> diff --git a/scripts/create-binary-archive.sh b/scripts/create-binary-archive.sh
> index 261a45a..63781e1 100755
> --- a/scripts/create-binary-archive.sh
> +++ b/scripts/create-binary-archive.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
> ?
> ?function usage()
> ?{
> diff --git a/scripts/d2c.sh b/scripts/d2c.sh
> index 33a3ccf..c411fcd 100755
> --- a/scripts/d2c.sh
> +++ b/scripts/d2c.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
> ?
> ?function usage()
> ?{
> --
> 2.38.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH v2] scripts: use env to invoke bash
2022-12-09 6:13 [PATCH v2] scripts: use env to invoke bash Himanshu Chauhan
2022-12-09 9:11 ` Xiang W
@ 2022-12-10 16:24 ` Anup Patel
1 sibling, 0 replies; 3+ messages in thread
From: Anup Patel @ 2022-12-10 16:24 UTC (permalink / raw)
To: opensbi
On Fri, Dec 9, 2022 at 11:43 AM Himanshu Chauhan
<hchauhan@ventanamicro.com> wrote:
>
> Not all systems have bash at a fixed location like /bin/bash.
> FreeBSD, for example, would typically have it at /usr/local/bin/bash.
> When building OpenSBI on freebsd system, the build breaks.
>
> Its advisable to use: #!/usr/bin/env bash
>
> [v2] In this version:
> * Change remaining two scripts to use env
The change log should be after the "---" line below for a
single patch otherwise it becomes part of the commit description.
>
> Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
Looks good to me.
Reviewed-by: Anup Patel <anup@brainfault.org>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> scripts/carray.sh | 2 +-
> scripts/create-binary-archive.sh | 2 +-
> scripts/d2c.sh | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/carray.sh b/scripts/carray.sh
> index 0c52bd6..13f9d36 100755
> --- a/scripts/carray.sh
> +++ b/scripts/carray.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
>
> function usage()
> {
> diff --git a/scripts/create-binary-archive.sh b/scripts/create-binary-archive.sh
> index 261a45a..63781e1 100755
> --- a/scripts/create-binary-archive.sh
> +++ b/scripts/create-binary-archive.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
>
> function usage()
> {
> diff --git a/scripts/d2c.sh b/scripts/d2c.sh
> index 33a3ccf..c411fcd 100755
> --- a/scripts/d2c.sh
> +++ b/scripts/d2c.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
>
> function usage()
> {
> --
> 2.38.1
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-10 16:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09 6:13 [PATCH v2] scripts: use env to invoke bash Himanshu Chauhan
2022-12-09 9:11 ` Xiang W
2022-12-10 16:24 ` Anup Patel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox