Mail Archives: djgpp/1998/10/08/15:52:08
On Fri, 2 Oct 1998, Ian Chapman wrote:
> My paths are not in autoexec.bat when I start djgpp work(I run a
> dj.bat to do that).
You didn't say that, so I had no means of guessing.
Setting PATH and the DJGPP in AUTOEXEC.BAT *is* the recommended way of
using DJGPP, even on Windows 9X. Do you *really* have a grave reason
to delay that setup until you open the DOS box?
If you do, then make the command line of the shortcut be "bash.exe -"
and put the PATH setting into .bash_profile. I still suggest to set
the DJGPP variable on AUTOEXEC.BAT, so that Bash itself will see it on
startup.
> I'm not even sure if autoexec.bat is run on starting a dos box.
No, it isn't, but it is run *before* Windows starts, and so the
settings there are propagated to all programs, including any DOS box
you open.
> "ls" works and "less file.txt" also works but "ls | less" gives pipe
> error less not found.
Seems like TMPDIR is not set correctly.
- Raw text -