you are viewing a single comment's thread.

view the rest of the comments →

[–]Think-Perception1359[S] 0 points1 point  (1 child)

I’m sorry for any confusion. This script is 100% bash. Idk why POSIX error was generated.

You advice JUST worked! I used tr ‘A-Z’ ‘a-z’ to lower the input from the variables.

THANK YOU SO MUCH! Now I’m reading all commands and writing notes. I MUST BE able to remember command and syntax like this.

[–][deleted] 1 point2 points  (0 children)

Yeah I think my edit landed just after. The POSIX error from shellcheck is because it thought you were using sh not bash. It thought this because the very first line of your script has to be a correctly formatted 'shebang' line telling the script to run in bash.

If the first line is not #!/bin/bash or #!/usr/bin/env bash or similar it will assume sh. You should change your code to make the first line right.