redir to an empty variable
Bug #1802149 reported by
Pavel Boldin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Redirection to an empty variable causes `dash` to exit abnormally via SIGSEGV.
1) $ lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04
2) $ apt-cache policy dash
dash:
Installed: 0.5.8-2.1ubuntu2
Candidate: 0.5.8-2.1ubuntu2
Version table:
*** 0.5.8-2.1ubuntu2 500
500 http://
100 /var/lib/
3) Script to reproduce:
$ cat test.sh
foobar() {
local a=$1
echo abc >&$a
}
foobar
4) Result:
$ dash ~/cloudlinux/
Segmentation fault (core dumped)
To post a comment you must log in.