Date
1 - 6 of 6
Source the project environment file from zsh
Oliver Hahm <oliver.hahm@...>
Dear Zephyr development team,
following the instructions in your Getting Started Guide [1], I tried to run source zephyr-env.sh in my zsh 5.2, but get: zephyr-env.sh:2: = not found With my limited knowledge about shell the syntax of this script seems indeed not to be POSIX shell compatible, but rather resemble bash syntax. Cheers, Oleg P.S. Manually copying&pasting the last lines of the script seems to work though. [1] https://www.zephyrproject.org/doc/getting_started/installation_linux.html#environment-variables
|
|
Nashif, Anas
Hi Oleg,
On 20/02/2016, 08:24, "Oleg Hahm" <oliver.hahm(a)inria.fr> wrote: Dear Zephyr development team,I think this can be fixed with: diff --git a/zephyr-env.sh b/zephyr-env.sh index dcb0638..d17780a 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -1,5 +1,5 @@ -if [ "X$(basename -- "$0")" == "Xzephyr-env.sh" ]; then +if [ "X$(basename -- "$0")" = "Xzephyr-env.sh" ]; then echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment." exit fi Can you file a bug in https://jira.zephyrproject.org please? :-) Anas
|
|
Yannis Damigos
Hi all,
The above did not work for me. The following worked diff --git a/zephyr-env.sh b/zephyr-env.sh index dcb0638..21eca53 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -1,5 +1,5 @@ -if [ "X$(basename -- "$0")" == "Xzephyr-env.sh" ]; then +if [ "X$(basename -z -- "$0")" = "Xzephyr-env.sh" ]; then echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment." exit fi Yannis
|
|
Oliver Hahm <oliver.hahm@...>
Hi!
On Sun, Feb 21, 2016 at 05:37:26PM -0000, Yannis Damigos wrote: Hi all,Thanks, that seems to work for zsh and bash. Cheers, Oleg
|
|
Oliver Hahm <oliver.hahm@...>
Hi!
On Sat, Feb 20, 2016 at 02:00:18PM +0000, Nashif, Anas wrote: Can you file a bug in https://jira.zephyrproject.org please? :-)I would love to, but somehow the page is not loading (neither in firefox nor in iron). Cheers, Oleg
|
|
Yannis Damigos
|
|