question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pushd not found on linux

See original GitHub issue

Any reason why not alias pushd to cd and popd to cd -? They seem to have the same behavior and cd - works great on linux (ubuntu at least).

Note: I did see the readme table and the other issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nfischercommented, Jan 17, 2020

Closing this because I don’t think shx needs to make any changes here, but feel free to keep discussing.

1reaction
DalderupMauricecommented, Jan 17, 2020

Yeahh I tried cmd and bash as shell in my github actions, but it still continued to use /bin/sh. Anyway, it’s probably an issue related to github actions itself. For anyone wondering, I’ve used yarn to change shells (yarn config set script-shell /bin/bash) and everything is fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing the “/bin/sh: pushd: Not Found” Error in Linux - Baeldung
pushd is a Bash-specific command which is not present in other shells like ash or dash. So, in these non-Bash shells, we get...
Read more >
linux - /bin/sh: pushd: not found - Stack Overflow
pushd is a bash enhancement to the POSIX-specified Bourne Shell. pushd cannot be easily implemented as a command, because the current working directory...
Read more >
Why doesn't pushd popd work in my Ubuntu shell script?
I'm in the process of moving over to my new laptop. I run into an issue where a shell script (that worked under...
Read more >
-ksh: pushd: not found - Unix & Linux Stack Exchange
1 Answer 1 · Paths containing shell functions you might want to use on a regular basis like this can be added to...
Read more >
Linux – /bin/sh: pushd: not found - iTecNote
pushd cannot be easily implemented as a command, because the current working directory is a feature of a process that cannot be changed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found