[–] YuriNiyazov 26d ago ↗ That's because "cd $HOME" is unnecessary, you can just type in "cd" and that puts you in ~/And "$HOM" and other things like that end up resolving to blank, so "cd $HOM" just gets resolved to "cd", which, as I said, puts you in ~/ [–] stop50 26d ago ↗ Unless the option that treats uninitialized variables as errors is active. This is important for scripts. [–] fragmede 26d ago ↗ absolutely vital! rm -rf $TMP/ had better not get run if TMP is empty!
[–] stop50 26d ago ↗ Unless the option that treats uninitialized variables as errors is active. This is important for scripts. [–] fragmede 26d ago ↗ absolutely vital! rm -rf $TMP/ had better not get run if TMP is empty!
3 comments
[ 2.9 ms ] story [ 18.8 ms ] threadAnd "$HOM" and other things like that end up resolving to blank, so "cd $HOM" just gets resolved to "cd", which, as I said, puts you in ~/