make judgement at beginning

whether shell is executed for the first time