Problem mit bashrc

Vom einfachen Programm zum fertigen Debian-Paket, Fragen rund um Programmiersprachen, Scripting und Lizenzierung.
Antworten
_ash
Beiträge: 1196
Registriert: 13.05.2005 12:35:02

Problem mit bashrc

Beitrag von _ash » 15.02.2016 21:02:13

Ich habe eine bashrc, die ich schon länger verwende. Unter Debian Testing erscheint jetzt ein Fehler; kann mir jmd sagen, ob/was sich von Jessie zu Stretch geändert hat und wie ich das beheben kann?

Die Fehlermeldung:

Code: Alles auswählen

bash: values: command not found
Meine bashrc:

Code: Alles auswählen


#------------------------------------------------------------------------------
# my personalized bashrc.
#------------------------------------------------------------------------------

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups


#------------------------------------------------------------------------------
# Prompt.
#------------------------------------------------------------------------------

if [ $USER != "root" ]; then

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u@\h\[\033[00m\]:\[\033[01;30m\]\w\[\033[00m\]\$
'
else

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;30m\]\w\[\033[00m\]\$
'
fi

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:
${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac


#------------------------------------------------------------------------------
# Bash shopts.
#------------------------------------------------------------------------------

# check the window size after each command and, if necessary, update the
values of LINES and COLUMNS.
shopt -s checkwinsize


#------------------------------------------------------------------------------
# Colourized ls.
#------------------------------------------------------------------------------
eval "`dircolors -b`"
alias ls='ls --color=auto'


#------------------------------------------------------------------------------
# Aliases.
#------------------------------------------------------------------------------

alias cls='clear'
alias l='ls -lA'
alias ll='ls -l'
alias la='ls -A'
alias ..='cd ..'


#------------------------------------------------------------------------------
# Security aliases, to avoid making mistakes.
#------------------------------------------------------------------------------
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ln='ln -i'


#------------------------------------------------------------------------------
# umask settings for root.
#------------------------------------------------------------------------------

if [ $USER != "root" ]; then
    umask 022
fi


#------------------------------------------------------------------------------
# Environment Variables.
#------------------------------------------------------------------------------

export EDITOR=vim
export HISTSIZE=100

export DBUS_SESSION_BUS_ADDRESS=""

eggy
Beiträge: 3331
Registriert: 10.05.2008 11:23:50

Re: Problem mit bashrc

Beitrag von eggy » 15.02.2016 21:08:17

Code: Alles auswählen

# check the window size after each command and, if necessary, update the
values of LINES and COLUMNS.
nimm da mal den Zeilenumbruch weg

Benutzeravatar
MSfree
Beiträge: 10686
Registriert: 25.09.2007 19:59:30

Re: Problem mit bashrc

Beitrag von MSfree » 15.02.2016 21:11:45

_ash hat geschrieben:Die Fehlermeldung:

Code: Alles auswählen

bash: values: command not found
In deiner bashrc ist eine Zeile, die mit values anfängt. Die Zeile sollte wohl auskommentiert sein oder der Zeilenumbruch zur drüber liegenden Kommentarzeile entfernt werden.

Das war wohl eher ein Editunfall als ein Änderung in Jessie.

_ash
Beiträge: 1196
Registriert: 13.05.2005 12:35:02

Re: Problem mit bashrc

Beitrag von _ash » 15.02.2016 21:25:49

Ups. Vielen Dank!

Antworten