cd is not an executable (beginner) anthony explains #446

preview_player
Показать описание
today I show an easy beginner mistake -- `cd` isn't actually an executable!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

thanks, I keep watching these videos to refresh the concepts

a_maxed_out_handle_of__chars
Автор

This is one of those info that I wouldn't have ever found out if not for this video.

blank
Автор

Actually I never knew this. Thanks for the good video.

Y
Автор

You' re the best man!
Thumbs up... Keep up the good work

TechieGuy
Автор

I knew that cd is a shell builtin but thanks to you, now I know the reasoning behind it being a shell builtin; not a binary

minhajsixbyte
Автор

Why is your keyboard like that and is there an advantage compared to normal ones?

会供価
Автор

also a "weird" thing is that "[" ('/bin/[') is an executable but ']' isnt :)

hoefkensj
Автор

Whoops. git bash alias going off


$ type cd
cd is a function
cd ()
{
builtin cd $1;
if [[ -n "$VIRTUAL_ENV" ]]; then
echo "deactivate $VIRTUAL_ENV";
deactivate;
fi;
if [[ -d ./.venv ]]; then
. ./venv/Scripts/activate;
echo "activate $VIRTUAL_ENV";
else
if [[ -d ./venv ]]; then
. venv/Scripts/activate;
fi;
fi
}

sillybuttons