I made a very simple script
#!/bin/bash mkdir $1 && cd $1 when I execute
myscript test It creates test directory but doesn't go inside just after. I don't understand why, on my fedora 27 this script works without any issue but on my debian stretch this behavior occurs. Could someone explain why I am having this bug.