bash blues

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
amif2000
Posts: 14
Joined: Sun Dec 10, 2006 3:14 pm

bash blues

Post by amif2000 »

Hi Jussi,

I would like to run Cygwin from within Zeus. I added a tool and point it to c:\cygwin\bin\bash.exe with the -i -l arguments, and a normal window option. The window opens, and bash starts at a directory that is not the root directory of my user and doesn't run .bashrc
Running the same from a command prompt or from the Cygwin icon does start at the user root folder.
Any idea what this might be?

Amit
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Amit,

Are you using the --rcfile bash command line option :?:

This web page seems to suggest this should be possible: http://www.bioinf.uni-freiburg.de/~mman ... ndows.html

The page also suggest you can run a bash command from a Windows batch file.

Now if this is the case, it should be possible to have Zeus run the windows batch file and if you have the bash command pipe it's output to a text file, it should also be possible to have Zeus read this output text file and have the output displayed in the Zeus error window.

For more details search the forum for the word: capture

Cheers Jussi
amif2000
Posts: 14
Joined: Sun Dec 10, 2006 3:14 pm

Post by amif2000 »

Thanks Jussi,

Looks like adding the cygwin bin directory to the PATH resolved this problem.
Now, I would like to open bash in the project directory.
I have a small batch that I run:

Code: Select all

@echo off
%1
cd %2
bash -i
And I send it $PDR and $PD as arguments. They both turn out to be empty, although I have a workspace and project defined. (BTW, $FD is not empty). So I guess I'm not setting something right for Zeus to fill those macros. Please assist.

Amit
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Amit,

Use the Macros, Execute Script menu and run the ztag.lua macro. This macro will list most of the Zeus macros and the values they substitute into ;)

Cheers Jussi
amif2000
Posts: 14
Joined: Sun Dec 10, 2006 3:14 pm

Post by amif2000 »

OK, that sure helped.

Got it to work with %1 = $WDRV and %2 = $PDD. Other macro tags are empty for some reason :shock:

Amit
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Amit,

Some of the Zeus tags come out of the panels of the Options, Editor Options menu while others come from panels of the Workspace Options menu.

So the ones that are empty means these settings have not been defined in either of these two locations.

Cheers Jussi
Post Reply