Subject: bug#22145: 25.0.50; tramp and auto-revert tests hang on OS X

From: Eli Zaretskii <[email-masked]>
Date: Sat, 09 Jan 2016 22:26:33 +0200

> From: Michael Albinus <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Sat, 09 Jan 2016 21:18:04 +0100
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Do you understand why the Arabic string fails?  Bidirectional scripts
> > have nothing to do with file names: file names are always stored in
> > strict logical order of the characters.
> >
> > Can you show 2 strings that fail the test, and tell why they fail it
> > (i.e. which test fails to match the ert predicate)?  Maybe I can then
> > tell how to fix that for OS X.
> 
> No ert predicate fails. Tramp simply hangs.

Hangs before or after receiving the response from the remote?

> The following command works as expected:
> 
> --8<---------------cut here---------------start------------->8---
> # (test -e /Users/test1/tmp/tramp-test8687J1V/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت || test -h /Users/test1/tmp/tramp-test8687J1V/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت) && /bin/ls -ildn -w /Users/test1/tmp/tramp-test8687J1V/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت
> --8<---------------cut here---------------end--------------->8---
> 
> And this command hangs and does not return:
> 
> --8<---------------cut here---------------start------------->8---
> # (test -e /Users/test1/tmp/tramp-test8687J1V/foo/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت || test -h /Users/test1/tmp/tramp-test8687J1V/foo/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت) && /bin/ls -ildn -w /Users/test1/tmp/tramp-test8687J1V/foo/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت/\أ\ص\ب\ح\ \ب\و\س\ع\ك\ \ا\ل\آ\ن\ \ت\ن\ز\ي\ل\ \ن\س\خ\ة\ \ك\ا\م\ل\ة\ \م\ن\ \م\و\س\و\ع\ة\ \و\ي\ك\ي\ب\ي\د\ي\ا\ \ا\ل\ع\ر\ب\ي\ة\ \ل\ت\ص\ف\ح\ه\ا\ \ب\ل\ا\ \ا\ت\ص\ا\ل\ \ب\ا\ل\إ\ن\ت\ر\ن\ت
> --8<---------------cut here---------------end--------------->8---
> 
> Maybe the command is simply too long for the shell?

It's just 1.6K, hardly long enough for that, I think.

Maybe you should just use the shorter command, it's good enough for
what you wanted to test here, right?