Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#10073 - Fix .bashrc file in /etc/skel directory (bash package)
Attached to Project:
Arch Linux
Opened by Alexander Drozdov (adrozdov) - Friday, 04 April 2008, 01:00 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 02 February 2009, 21:45 GMT
Opened by Alexander Drozdov (adrozdov) - Friday, 04 April 2008, 01:00 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 02 February 2009, 21:45 GMT
|
DetailsDescription:
If user put some ouput (like 'echo Hello!' or 'celebrat' for output every time when BASH is started) into ~/.bashrc file some non-interactive operations can be fail. For ex., my .bashrc file: ---- cut here ---- alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' test -n "$DISPLAY" && export TERM=xterm-color export PATH=$PATH:~/bin export EDITOR=vim # Output dates echo celebrat echo ---- cut here ---- And if I try to copy file from another computer via 'scp' it fail: scp ask me for password but after Enter-press I see two new line on screen and info from celebrat. Solution for fixing this issue (from Debian Etch): add next lines: ---- cut here ---- # If not running interactively, don't do anything [ -z "$PS1" ] && return ---- cut here ---- at the begin of .bashrc so... For new users it line should be placed into skel data and /etc/skel/.bashrc should be fixed. Additional info: * package version(s): bash 3.2.033-2 * config and/or log files etc: Steps to reproduce: 1. install bash and openssh 2. create new user (alex, for ex.) and set bash as user-shell 3. add 'echo Hi Alex' to end of ~/.bashrc 4. start openssh daemon (/etc/rc.d/sshd start) 5. log in to anther computer and try to copy some file via scp to user alex: scp some_file.txt alex@test_host: EXPECTED RESULT: file copied ACTUAL RESULT: 'Hi Alex' text is shown on screen, file is not copied. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Monday, 02 February 2009, 21:45 GMT
Reason for closing: Implemented
Monday, 02 February 2009, 21:45 GMT
Reason for closing: Implemented
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi