Question

I just got a mac, and since I am more used to windows cmd than bash in linux and mac, I am struggling with this. I am trying to change an output path using bash to make some apps portable. In cmd, it was something like this

Set APPDATA=%CD%/certainfolderforportablestuff

How does this work in bash? Just keep the Appdata folder name though. Thanks in advance!

Was it helpful?

Solution

APPDATA=%CD%/certainfolderforportablestuff

in bash should be

APPDATA=$PWD/certainfolderforportablestuff

And since you're just starting with bash I suggest that you place variables inside double quotes by default:

APPDATA="$PWD/certainfolderforportablestuff"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top