TV增值业务运营中心
李磊
Tel: 15620012157
Email:lil373@chinaunicom.cn
地址:天津市南开区南马路1151号2楼
发件人: Bernhard Voelker发送时间: 2018-01-03 21:11主题: Re: bug#29939: HELP:enter a "ls"command, then the os connection will closedOn 01/02/2018 07:25 AM, lil373@chinaunicom.cn wrote:> When I enter a "ls " command at the directory "/root",the OS connection will closed.are you sure "ls" is /usr/bin/ls?$ type lsls is /usr/bin/lsI.e., it could be aliased to something weird, e.g. a shell function whichcalls '/usr/bin/ls' under the hood but "exit"s in certain cases:$ _ls() { /usr/bin/ls ${1+"$@"} | grep . || exit; }$ alias ls=_ls$ type lsls is aliased to `_ls'$ lsbinfilehome...$ ls ENOENT/usr/bin/ls: cannot access 'ENOENT': No such file or directorylogoutOther than that, I don't see how the spawned 'ls' process could leadto a logout of the calling shell process.Have a nice day,Berny