This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Xwin an .bashrc


Bernard,

I really have no idea about anything related to shell configuration and
usage... remember, I'm just a lowly programmer.  :)

You'll want to look at the manuals for Xterm, bash, and sh, as sh is the
shell that Xterm runs by default, I believe.

Harold 

-----Original Message-----
From: Bernard Revet [mailto:bmrevet@igr.fr]
Sent: Thursday, December 14, 2000 5:18 AM
To: 'cygwin-xfree@sources.redhat.com'
Subject: Xwin an .bashrc


As I indicated in my previous messages I still wonder why .bashrc or
.bash_profile
at whatever place in the directories  /    /bin   /usr/X11R6/bin  ~  are
not taken into
account in cygwin nor in Cygwin-Xfree when you launch these programs
using
cygwin.bat or startxwin.bat.

However  .bash _history is created and does work.

I would deeply appreciate to have these points clarified

I join the 2 .bat files

cygwin.bat

@echo off
set COURBURE=/Courbure
D:
chdir \cygwin\bin

bash --login -i

In this case the variable COURBURE is taken into account, what you can
verify
doing echo $COURBURE

startxwin.bat

@echo off

SET DISPLAY=127.0.0.1:0.0

SET
PATH=%PATH%;d:\cygwin\bin;d:\cygwin\usr\X11R6\bin;d:\cygwin\usr\local\bin;\C
ourbure

SET HOME=/home/administrateur
SET COURBURE=/Courbure

start XWin -screen 0 1024x768x8 -whitepixel 255 -blackpixel 0

start /B xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/home/administrateur/xmodm
start /B xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/bin/bash
--login -i

start vtwm

In this last case the 2 variables are set and the  program xmodm is
started.  xmodm is
a running program which allows a modification of the keyboard

Best regards

Bernard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]