Re: Strange occassion with directory with spaces and tcsh



19.03.2017 5:51, Yury V. Zaytsev пишет:
On Sun, 19 Mar 2017, Rashid N. Achilov wrote:

Recently I spent some time for this strange - in src/subshell/common.c is there function feed_subshell(). When login shell is bash, read(), issued intjo this fuctioin, reads full name of directory. When login shell is tcsh, read() reads directory name up to last '/' char! (this way - when directory has name "/tmp/test test", bash-called read() reads "/tmp/test test" and works OK, tcsh-called read() reads "/tmp" and throws warning)

I don't have tcsh, so I can't check it out, but if you have a patch that works for you and make Trac ticket, it might even get committed one day.


I haven't still a patch. Check on incomplete read call only when login shell is tcshand I still do not check what can happen, when I comment this checking. Of course, I'll try to resolve, but probably I don't have enough knoweledgeto understand why read() reads one quantity with one shell and another - with another shell

--
 With Best Regards.
 Rashid N. Achilov (RNA1-RIPE), Web: http://www.sheltonsoft.ru
 E-Mail: shelton [woof!] sheltonsoft [dot] ru
 PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A



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