mcandre / unmake

a makefile linter
Other
83 stars 3 forks source link

warn on simple cd, pushd, popd commands #195

Closed mcandre closed 1 year ago

mcandre commented 1 year ago

make often invokes commands in separate system calls.

This means that commands based on cd, push, or popd are unlikely to correctly persist the working directory across successive commands, or across separate rules.

Also, the specific commands pushd and popd are GNU bash extensions to the POSIX sh interpreter, likely to fail on many platforms.