News for hackers. Stuff that matters.
Re:Fish Shell 3.5.0 by lytedev on Thursday June 16, 2022 @08:15PM (#31772580)
You should instead

    pushd /my/path && command && popd
Both in bash AND in fish!
Re:Fish Shell 3.5.0 by CJefferson on Friday June 17, 2022 @02:31AM (#31774752)
the problem with that is I ended up in the wrong directory if I press ctrl+c, or in the exact examples you give, if command fails.