'ls' output with '\"\ \ ' on 1.18.4 - problem with dropbear+mc
Tomasz Czapiewski
xeros at irc.pl
Mon Apr 4 05:27:34 UTC 2011
On Mon, 4 Apr 2011, Denys Vlasenko wrote:
> On Sunday 03 April 2011 23:51, Tomasz Czapiewski wrote:
>>> So, what is your shell?
>>
>> In TV it's BusyBox 1.18.4 ash
>> On PC it's bash 4.1.5
>>
>>>
>>>
>>>>> Can you run this:
>>>>>
>>>>> ls -Qlan /tmp | grep '^[^cbt]' | ( while read p x u g s m d y n; do echo "P$p $u.$g
>>>>> S$s
>>>>> d$m $d $y
>>>>> :$n
>>>>> "; done ) >LOG
>>>>>
>>>>> and post resulting LOG file?
>>>>
>>>> Looks ok to me:
>>>> http://pastebin.com/hGhZUgrV
>>>
>>> Can you send it as an attachment? Trailing spaces can be mangled by pastebin.com
>>>
>>> --
>>> vda
>>>
>>>
>>
>> Ok, output from commands on both machines in attachements.
>
> They both look strange: TONS of whitespace on each line.
> I can't reproduce it.
>
> I suspect you added whitespace by cut-n-pasting the script.
> IOW: instead of
> S$s
> line, you have
> S$s<122 space chars>
> line, and similarly for other lines in the script.
> (Otherwise, I must conclude that _both_ bash and ash are buggy,
> and for some reason they are buggy only on your machine, they work
> fine for me - not very likely theory!)
>
Yes, these whitespaces are my copy-n-paste (commands from mail client)
bug, sorry... I should have been more careful.
This time the proper output on PC running dash and bash (althrough
different PC).
Regards,
Tomasz Czapiewski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LOG-dash.gz
Type: application/octet-stream
Size: 256 bytes
Desc:
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110404/3608e53c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LOG-bash.gz
Type: application/octet-stream
Size: 246 bytes
Desc:
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110404/3608e53c/attachment-0001.obj>
More information about the busybox
mailing list