Inside of Bash or Windows (or any other shell), is it needed to do
./script/generate scaffold foo name:string
instead of just using
script/generate ...
? I do see the first form sometimes, but the second form always works for me, on Mac OS X or Ubuntu, even if the PATH doesn’t include the . (current directory)
So can the second form always work, so the first form is really not needed? I think for executable, we sometimes use ./a.out to run it… but seems like maybe script/generate doesn’t need the ./ in front?
They mean exactly the same thing.
The difference is that with
./you’re explicitly specifying the current directory and without it, it’s implicit.