You are not logged in.
Pages: 1
After todays update of bash piping anything to anything just hangs, doesn't ever complete or even fail.
e.g. ls | wc -l printf "hello\n there" | grep hello
Downgrading bash to 4.2.045-5 fixes it.
Last edited by moetunes (2014-02-28 07:51:38)
You're just jealous because the voices only talk to me.
Offline
Works here.
Offline
I updated this morning, shutdown the laptop, did some stuff and fired the laptop up again and when I tried to do any piping in the terminal it would never do anything. I downgraded bash and rebooted and piping worked again. Don't know what else it could be...
You're just jealous because the voices only talk to me.
Offline
something in your ~/.bashrc, maybe?
Online
Unless it is the check for running interactively don't see what it could be(have been using this .bashrc for a while now)
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
shopt -s checkwinsize
export EDITOR=vim
export PAGER=less
# export BROWSER=firefox
export HISTCONTROL=ignoredups
export HISTFILESIZE=2000
export HISTIGNORE="su:exit:top:Q:q:logout:cd:cd ..*:ls:clear:gm*:ggm*:rm*"
# export _JAVA_AWT_WM_NONREPARENTING=1
complete -cf sudo
complete -r mplayer
# Supercharge 'less'
eval $(lesspipe.sh)
alias sudo='sudo '
alias ls='ls --color=auto'
alias Q='exit'
alias make='nice -n 10 make -j 5'
alias rm='rm -v'
alias stab='killall -v'
alias allmail='clear;ggmail_check m; sleep 2; gmail_check m'
alias wandm='allmail && weather'
alias xmms='XLIB_SKIP_ARGB_VISUALS=1 xmms -e'
alias cmtrix='cmatrix -a -b -C blue'
alias mpll='mpv -ao alsa'
alias mphd='mplayer -ao alsa -vfm ffmpeg -lavdopts fast:skiploopfilter=all'
alias ssh='ssh -C4c arcfour,blowfish-cbc'
alias ttp='textpad'
alias dmesg='dmesg -L'
#PS1='[\u@\h \W]\$ '
#PS1='\n\D{%l:%M:%S %P}\n\[\033[01;34m\][\u@\h \W]\[\033[00m\]$ '
#PS1='\n\[\033[0;33m\]\D{%l:%M:%S %P}\n\[\033[01;34m\] [ \[\033[01;37m\]\W\[\033[01;34m\] ]\[\033[1;33m\]$\[\033[00m\] '
PS1='\n\[\033[0;33m\]\D{%l:%M:%S %P}\n\[\033[01;34m\] [ \[\033[01;37m\]\W\[\033[01;34m\] ]\[\033[1;33m\]$\n\342\224\224\342\224\200\342\224\200\342\225\274\[\033[00m\] '
case "$TERM" in
xterm*|rxvt*)
# Show the currently running command in the terminal title:
# http://www.davidpashley.com/articles/xterm-titles-with-bash.html
show_command_in_title_bar()
{
case "$BASH_COMMAND" in
*\033]0*)
# The command is trying to set the title bar as well;
# this is most likely the execution of $PROMPT_COMMAND.
# In any case nested escapes confuse the terminal, so don't
# output them.
;;
*)
echo -ne "\033]0;${BASH_COMMAND}\007"
;;
esac
}
trap show_command_in_title_bar DEBUG
;;
*)
;;
esac
You're just jealous because the voices only talk to me.
Offline
I would try it with the default bashrc and see if it works, easy way to eliminate a variable.
Online
Found out is the trap line near the bottom. That has worked well for ages and I can't find anything in bash's changelog that is relevant to it...
You're just jealous because the voices only talk to me.
Offline
Thanks to jasonwryan
Fixed a bug caused by executing an external program from the DEBUG trap
while a pipeline was running. The effect was to disturb the pipeline
state, occasionally causing it to hang
You're just jealous because the voices only talk to me.
Offline
See http://gnu-bash.2382.n7.nabble.com/Bash … 12531.html and a few others.
Last edited by karol (2014-02-28 07:12:49)
Offline
Confirmed in #bash as a bash bug. Bug report filed with them.
Thanks for the swift interest and replies.
Cheers
You're just jealous because the voices only talk to me.
Offline
I saw the report. I will pull the patch when it gets posted.
Offline
I am also using the same script as motunes to show the title in urxvt. Need to hold bash from update?
Desktop screenshots :: Origami :: github
Offline
yes, or comment the trap line or don't use pipes
You're just jealous because the voices only talk to me.
Offline
On a side note, bashbug fails without rmail being installed and rmail isn't in the repos.
/usr/bin/bashbug: line 266: rmail: command not found
/usr/bin/bashbug: mail failed: report saved in /home/pnewm/dead.bashbug
I found the appropriate mailing list and sent the dead.bashbug file there.
Last edited by moetunes (2014-02-28 11:38:19)
You're just jealous because the voices only talk to me.
Offline
bashbug fails without rmail being installed and rmail isn't in the repos.
I don't know anything about how these would go together - but it seems rmail is in the repos:
$ pkgfile rmail
community/exim
$ pkgfile -l exim | grep rmail
community/exim /usr/bin/rmail
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I am also using the same script as motunes to show the title in urxvt. Need to hold bash from update?
I'm not expecting bash to be rushed from [testing]...
Offline
Thanks for that Trilby, I should install pkgfile but I don't seem to need it often enough...
I just did a pacman -Ss rmail.
I'll see if I can have the bash people include their bugs mailing address in the error message for when rmail isn't found. It would save having it as a dependency and people having to search for the mailing list
You're just jealous because the voices only talk to me.
Offline
I was sent a patch so I built bash with it and all seems to be good now.
You're just jealous because the voices only talk to me.
Offline
It might pay to pastebin the patch, just in case others find themselves in the same boat.
Offline
Offline
Offline
That's the patch.
You're just jealous because the voices only talk to me.
Offline
Pages: 1