bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash crashes on command substitution


From: Yuri
Subject: bash crashes on command substitution
Date: Sun, 12 Apr 2015 21:30:37 -0700
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On FreeBSD, I have this command line (1). When I move cursor right after 'tmp', press <backspace> and <Tab>, it turns into (2)!
What happened?
The problem is completely reproducible.

bash-4.3.33

Yuri



--- (1) begin with this---
address@hidden /usr/local/etc/rc.d]# [ "$(procstat $(cat /var/tmp/tor.pid)" ]

--- (2) result is this! ---
address@hidden /usr/local/etc/rc.d]# [ "$(procstat $(cat /var/tmbash: command substitution: line 30: unexpected EOF while looking for matching `"'
bash: command substitution: line 31: syntax error: unexpected end of file
bash: command substitution: line 30: unexpected EOF while looking for matching `"'
bash: command substitution: line 31: syntax error: unexpected end of file
bash: command substitution: line 30: unexpected EOF while looking for matching `)'
bash: command substitution: line 31: syntax error: unexpected end of file
p



reply via email to

[Prev in Thread] Current Thread [Next in Thread]