I have been using the Pause function that is in the thread:
What is the Linux equivalent to DOS pause?
I did a fresh install of CentOS 9 and tried to run the scripts that I built using the
# !/bin/bash
source variables.sh
`function pause(){
read -p "$*"
}`
I get this error message now:
: No such file or directoryariables.sh
'/pac-installv8: command substitution: line 18: syntax error near unexpected token `{
'/pac-installv8: command substitution: line 18: `function pause(){
I have run the yum update -q -y for the OS to see if that fixed the function but it did not. The source variables.sh file that I am including is giving a file not found error even though I can use that same variable.sh file in a test script from the same root folder and it runs just find
#!/bin/bash/
source variables.sh
echo "dbuser=$dbuser"
This works just find with no errors on the same server. I figure it has to be an OS issue but don't know where to begin to look. Thanks for any help.
Sherwin