delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq041.html   search  

| Previous | Next | Up | Top |

6.11 Why does Bash crash?

Q: Bash crashes on me when I invoke shell scripts...

Q: Why does Bash say "pipe error: Access denied" when I try to run two programs via a pipe?

Q: When I run certain complex shell scripts, Bash sometimes prints a message saying "Cannot make a child for command substitution: (null)". What gives??


A: If Bash crashes when you invoke shell scripts, check whether those scripts have #!/bin/sh on their first line. If they do, the most probable reason for the crashes is that you don't have sh.exe anywhere on your PATH (it does not have to be in /bin!). Either copy bash.exe into sh.exe, or create a "symlink" to bash.exe, like this:
      ln -s c:/djgpp/bin/bash.exe c:/djgpp/bin/sh.exe

(replace c:/djgpp with the actual pathname of your DJGPP installation).

Error messages about pipes and command substitution usually mean that your TMPDIR environment variable points to an invalid drive. Old ports of Bash had problems with `command` substitution, so make sure you have the latest binaries.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Sep 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)