This is the mail archive of the cygwin@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]

new install of cygwin with pdksh doesn't work


I have a relatively recent install of cygwin, along with pdksh-2.14.
I have scripts that reference "/bin/ksh" that work fine.

Today I've been setting up these tools on another PC, and now when I
execute "ksh", I get the following:

    ksh: /cygdrive/d/dmk/.bashrc[1]: syntax error: `in^M' unexpected

I'm sure this has something to do with line endings, but I don't
understand what has to be done.

In case it matters, here are my simple ".bashrc", ".bash_profile", and
".bashvars" files:

----------.bashrc: cut here------
case $- in
	 *i*)
		  if [ "$TERM" = "dumb" ] ; then
				alias ls="ls -aFC --color"
		  else
				alias ls="ls -aFC";
		  fi
		  PS1="[\H;] "

		  . $HOME/.bash_profile
		  ;;
esac
----------.bashrc: cut here------

----------.bash_profile: cut here------
umask 2

. $HOME/.bashvars
----------.bash_profile: cut here------

----------.bashvars: cut here------
export HISTSIZE=64
unset HISTFILE

export ENV=$HOME/.bashrc

export PAGER=less

export MPAGE="-4 -b Letter -H -X -c -f -z lp"

export PATH="$PATH:.://d/dmk/lisp/jde-2.1.8/lisp"

export PATH="$PATH:/usr/local/bin"

export TP_OPTS="-m DRAFT -i --n -C --f --F -S 2 -4"

function dospathinbash () {
	echo $(cygpath -w $1) | sed -e 's,\\,/,g'
}
export -f dospathinbash
----------.bashvars: cut here------
-- 
===============================================================================
David M. Karr     ; dkarr@tcsi.com  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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