Level 099 video question

at 7:15… you are using pushd +2

and at 8:45 you said stuff would be rotated using negative number but you used dirs -0… but nothing rotated…

i got confused.

1 Like

Think that was a typo, he used dirs -0 instead of pushd -0. Using dirs with an index just displays the directory.

2 Likes

That video kinda blew my mind.

I’ve been using linux on a daily basis for about 14 years and I use the command line regularly (but not quite daily) and I never knew you could do that!! :laughing:

Learn something new every day…

5 Likes

Yeah it was just a mistake no one caught until it was live.

2 Likes

This wasn’t something I’ve considered too deeply though it did raise my eyebrow for a few seconds.

I am one of those savages who replaced cd for the directory stack, and then wrap other tools around it. IIRC some recent changes in bash has made oddly-named directories act poorly in some situations (with these tools that is).