resolution tests pwd dans false positive

This commit is contained in:
Hugo LAMY
2021-12-22 12:36:25 +01:00
parent 5aba1963ff
commit c8848afe79
6 changed files with 75 additions and 67 deletions

View File

@@ -10,6 +10,66 @@ cat Makefile | grep pr | head -n 5 | hello (NA)
echo $?
#---------------------------------------------
# pwd dans un dossier qui n'existe pas ne s'affiche pas
mkdir dir
cd dir
rmdir ../dir
cd ./
pwd
echo $PWD
echo $OLDPWD
export PWD=
export OLDPWD=
mkdir dir
cd dir
rmdir ../dir
cd ./
cd ././././././//////////./././././././//////./
pwd
echo $PWD
echo $OLDPWD
export PWD=
export OLDPWD=
mkdir dir
cd dir
rmdir ../dir
cd ./
cd ../
pwd
echo $PWD
echo $OLDPWD
export PWD=
export OLDPWD=
mkdir dir
ln -s dir link
cd link
rmdir ../dir
cd ./
pwd
echo $PWD
echo $OLDPWD
export PWD=
export OLDPWD=
mkdir dir
ln -s dir link
cd link
rmdir ../dir
cd ./
cd ../
pwd
echo $PWD
echo $OLDPWD
export PWD=
export OLDPWD=
#---------------------------------------------
# export PWD et OLDPWD ne dependent pas des meme action que bash
# (dans bash : cd ne creer pas PWD, et OLDPWD n'existe que si PWD existe)