I created a shell script file named 1.sh with only one echo command:
echo $HISTSIZE
I made the file 1.sh executable and tried to run the file in the terminal by running the command
./1.sh
It printed an empty line on the terminal. But when I run this command at the shell prompt I get 1000 as output.
Why is the echo not working in my shell script?