simple-bash-scripts icon indicating copy to clipboard operation
simple-bash-scripts copied to clipboard

scripts/up.sh

Open KBSK opened this issue 1 year ago • 0 comments

Hi @ruanyf ,

I'm not getting the " sh=$(which $SHELL) exec $sh ". What you are trying to achieve over here .

#!/bin/bash

LEVEL=$1 for ((i = 0; i < LEVEL; i++)); do echo $i CDIR=../$CDIR done cd $CDIR echo "You are in: "$PWD sh=$(which $SHELL) exec $sh

KBSK avatar Sep 09 '24 16:09 KBSK