Welcome to the Linux Foundation Forum!

LFS203. Bash scripting. While loop lesson. testwhile.sh does not work with /bin/sh interpreter

Hello there,

In my ubuntu noble (24.04) below script does not work:

  1. $ ./testwhile.sh
  2. ./original_testwhile.sh: 3: [[: not found
  3. you failed 4 times; giving up
  4. ./original_testwhile.sh: 14: exit: Illegal number: -1

With /bin/bash it works just fine.

Any thoughts on this?

Thanks in advance,

Luis

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training