Displaying 1 result from an estimated 1 matches for "short_view".
2003 Oct 13
1
Problem in sftp 'ls' command output
...could make the problem not obvious.
Here it is : the file names are concatenated, without spaces in-between]
Known problem ? If so, my apologies. If not, I did a little homework and
found that the sftp-int.c/do_ls_dir function seems to be the culprit. We
have first :
--------
if (!(lflag & SHORT_VIEW)) {
int m = 0, width = 80;
struct winsize ws;
/* Count entries for sort and find longest filename */
for (n = 0; d[n] != NULL; n++)
m = MAX(m, strlen(d[n]->filename));
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
width = ws.ws_col;
colum...