Looking for solution round this .
i have a script
a.bsh
#!/bin/bash
a=5
echo $a
this prints 5 when ever executed .
./a.bsh 5
i need to either look to update this script or use another away to get value 5 when i do on console
echo $a
i tried updating .bashrc with
alias a=5
but it didnt work . Also we can use set
in this somehow ?
please advice
export a=5
? – aviro Dec 13 '21 at 07:58