$pwd vs $(pwd) vs `pwd` vs ${pwd}

781 Views Asked by At

I am writing a groovy script in jenkins, and when trying these commands I'm getting different outputs not knowing what exactly the difference and what is the need for each one of these. Furthermore, the output of same commands is different between running it on jenkins or running it in putty terminal connected to jenkins machine, any idea about these issues?

0

There are 0 best solutions below