Opened 18 years ago
Closed 18 years ago
#928 closed bug (fixed)
'which' aborts or kills terminal
Reported by: | engima | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Terminal | Version: | R1/pre-alpha1 |
Keywords: | Cc: | bonefish | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
When running the shell command 'which' it will always result in either:
If the command we're trying to find doesn't exit, an error message that some gibberish has been terminated, and also kills the terminal (Attaching screenshot) If the command exists, we just get the terminal closed immediately.
The command 'which' uses, causing the fault is 'echo $(builtin type $cmd | sed lq)'. Typing this out on the command line results in the same problem.
Attachments (1)
Change History (9)
by , 18 years ago
comment:1 by , 18 years ago
Owner: | changed from | to
---|
I don't know why this was assigned to me, anyway, could be either a problem with the tty layer or with pipes, and in both cases, Axel would know better :)
comment:2 by , 18 years ago
Description: | modified (diff) |
---|
Who is responsible for the Terminal? Currently, the component owner is "jackburton". That's why it got assigned to you.
comment:5 by , 18 years ago
MiniTerminal is also affected, although:
'which' results in: whence: argument expected
while
'which ls' results in: sh: src/system/libroot/posix/malloc/processheap.cpp:166:void BPrivate::processHeap::free(void *): sb
and a crash.
comment:6 by , 18 years ago
Cc: | added |
---|
comment:7 by , 18 years ago
Owner: | changed from | to
---|
Screenshot of error message from 'which asdf'