This is my script
cd /opt/product/vinoth
-- some operations --
cd -
While executing this command cd -
the old path get displayed in the console.
is there is any way to block this from displaying in console.
The same can be avoided in make files by using @ infront of the command.
By surfing i understood that this can be achieved using cmd=$(cd -)
The command was not executing and path was not changed.