PUSHD example logic inverted

Microsoft Windows
Post Reply
binki
Posts: 3
Joined: 2022-Oct-27, 4:24 pm

PUSHD example logic inverted

Post by binki »

Hello,

On the PUSHD page, there is this example:

Code: Select all

C:\> pushd "C:\demo\demo.1" 2>nul && Echo Error not a folder
I am pretty sure it should be the following:

Code: Select all

C:\> pushd "C:\demo\demo.1" 2>nul || Echo Error not a folder
Thanks again for this great resource!

P.S., I am a bit confused if I should be posting this in the site feedback forum or here. Please let me know if I am in the wrong place. Thanks!
jeb
Posts: 12
Joined: 2023-May-10, 1:28 pm

Re: PUSHD example logic inverted

Post by jeb »

You are right, just tested to be absolutely sure.
User avatar
Simon Sheppard
Posts: 191
Joined: 2021-Jul-10, 7:46 pm
Contact:

Re: PUSHD example logic inverted

Post by Simon Sheppard »

Thanks all, fixed now
binki
Posts: 3
Joined: 2022-Oct-27, 4:24 pm

Re: PUSHD example logic inverted

Post by binki »

Thank you!
Post Reply