[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.2.12); Retrieve of links attributes with stat fail when lin
From: |
Pierre Téchoueyres |
Subject: |
Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes. |
Date: |
Thu, 20 Aug 2015 20:15:21 +0200 |
User-agent: |
KMail/4.14.9 (Linux/4.1.4-200.fc22.x86_64; KDE/4.14.9; x86_64; ; ) |
Hi Michael,
Le jeudi 20 août 2015, 20:01:55 Michael Albinus a écrit :
> Pierre Téchoueyres <address@hidden> writes:
> > Hello everybody,
>
> Hi Pierre,
>
> > I've made some tests with stat and sed and it seems that stat support the
> > null character only with --printf switch. sed seems to catch null with
> > \o0.
> >
> > For the fear of shell's handling of null char : the first problem is the
> > stat program. Linux and BSD have differents options (and I don't know how
> > it work on Solaris nor in HP*UX nor ...)
> > So maybe the solution is to first check for the version of stat and use an
> > alist of options for each ones (maybe a custom option) but that's a bigger
> > work.
>
> Well, this is too much hassle I fear. We DON'T know which shells, and
> which broken implementations of them, are used remotely. So I rather
> oppose such a patch.
>
OK I understand.
But actually stat isn't normalized between unices and we rely on -c switch
which doesn't exist on BSD. That why I thinked of an custom option and a
dispatch depending on the version check. Anyway.
> What do you think about my other proposal, using `tramp-end-of-heredoc'
> as marker?
>
This should work, but I guess the debugging output will be ... interresting
...
I'll try to work on it.
Best regards Pierre
- tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Pierre Téchoueyres, 2015/08/19
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Michael Albinus, 2015/08/20
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., yary, 2015/08/20
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Pierre Téchoueyres, 2015/08/20
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Michael Albinus, 2015/08/21
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Michael Albinus, 2015/08/24
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., pierre . techoueyres, 2015/08/24
- Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes., Michael Albinus, 2015/08/24