[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Unknown error when running a simple bash script]
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: [Unknown error when running a simple bash script] |
Date: |
Mon, 4 Jul 2022 18:15:27 +0200 |
On Mon, Jul 4, 2022, 18:07 <avni@avni.laptop.example.com> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2 -flto=auto -ffat-lto-objects -flto=auto
> -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
> -Wall
> uname output: Linux asus-laptop.example.com 5.15.0-27-generic #28-Ubuntu
> SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Bash Version: 5.1
> Patch Level: 16
> Release Status: release
>
> Description:
> [I am trying to run an if loop in my script and the if loop has a
> conditional statement, if [[ $input == "y" ]]; then echo "Some text".
>
> When I am running the script, it says "[[: not found."
>
> Please let me know the solution of this problem.
>
you sure its bash u run ? echo $SHELL and see
>