delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/28/17:14:24

Message-ID: <001001c0a1d3$4427bc00$af345ba5@tamu.edu>
From: "mike friedrichs" <mike_fr1 AT txucom DOT net>
To: <djgpp AT delorie DOT com>
References: <001701c0a1bb$0931f880$af345ba5 AT tamu DOT edu> <8011-Wed28Feb2001221705+0200-eliz AT is DOT elta DOT co DOT il>
Subject: Re: bash startup
Date: Wed, 28 Feb 2001 16:10:28 -0600
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Reply-To: djgpp AT delorie DOT com

this is _blogin, shipped with the product, no changes made.
___________________________________________________________
# ~/.bash_login

# this function sources file if exists.
_fsource ()
{
  if [ -f "$1" ]; then
    source "$1"; return 1
  else
    return 0
  fi
}

# this function prints result if nonzero value
_prompt_command ()
{
  local status="$?"
  if [ $status != 0 ]; then
    echo "[exited with $status]" 1>&2
  fi
}

# bash does not source .bashrc if find .bash_login
LOGIN_SHELL=true
if _fsource ~/.bashrc; then
  if _fsource ~/_bashrc; then
    : # clear status
  fi
fi

SIMPLE_BACKUP_SUFFIX='~'
VERSION_CONTROL=simple
export SIMPLE_BACKUP_SUFFIX VERSION_CONTROL

# hostname is external command, you need sh-utils (shl112b.zip).
HOST=${HOST-$(hostname | tr 'A-Z' 'a-z' | sed -e 's/ *$//g')}
# PS1 stores prompt string
PS1='${HOST}#${SHLVL}(\w)\$ '
export PS1 HOST

# this variable is evaluated each time it prints prompt
PROMPT_COMMAND=_prompt_command

# ignore ^D until 10 times
ignoreeof=10

# move to home directory
cd $HOME

echo "Welcome to bash version $BASH_VERSION"
____________________________________________________________

this is _bashrc, again with no changes
____________________________________________________________
# ~/.bashrc

if [ "$PS1" != "" ]; then
  # setting for interactive shell
  CVSROOT=/usr/src/master
  EDITOR='mule -w'
  CDPATH="${HOME}/work;${HOME}"
  TMPDIR=/tmp
  export CVSROOT EDITOR CDPATH TMPDIR

  alias ls='ls -F'
  history_control=ignoredups
fi
______________________________________________________________

d:\temp does exist.


----- Original Message -----
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: "mike friedrichs" <mike_fr1 AT txucom DOT net>
Cc: <djgpp AT delorie DOT com>
Sent: Wednesday, February 28, 2001 2:17 PM
Subject: Re: bash startup


> > From: "mike friedrichs" <mike_fr1 AT txucom DOT net>
> > Date: Wed, 28 Feb 2001 13:17:04 -0600
> >
> > when I started bash using the following environment, I received piping
> > errors, and some times a general protection fault, and then dumped out
of
> > 'bash'. I also copied _blogin, _bashrc, and _inputrc
> > from d:\dosgnu\gnu\bash-2.04\dos to d:\dosgnu\home\mikefr; my home
directory
> >
> > "dos environment" prior to executing 'bash'
> > winbootdir=C:\WIN
> > COMSPEC=C:\COMMAND.COM
> > DJGPP=d:\dosgnu\DJGPP.ENV
> > HOME=d:\dosgnu\home\mikefr
> > TMPDIR=d:\temp
> > PROMPT=$p$g
> > windir=C:\WIN
> > PATH=D:\DOSGNU\BIN;D:\PC-DOS;C:\WIN;C:\WIN\COMMAND;C:\BATCH
> > TMP=c:\temp
> > TEMP=c:\temp
> > DIRCMD=/o:gne
>
> Does the directory d:/temp actually exist?
>
> >
> > sometimes I wouldn't have a  general protection fault and i would stay
in
> > bash. I would then echo the environment to the screen with 'set', and I
> > would notice that environment variable 'tmpdir' would return '/temp',
> > instead of 'd:/temp'.
>
> Please post the contents of your _blogin and _bashrc files.  Do some
> of them set SYSROOT or some such?
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019