Bruno Haible writes: Hi Bruno, > I've applied the patch to lisp/net/tramp-sh.el (since there > is no lisp/tramp-sh.el in this version of emacs). Yep, I did the work in the Tramp repository, which has a slightly different directory structure. > But anyway. With this change, the "gmake check" run goes further along: Good. After the night, I didn't like the patch anymore, it was too complicate. So I have rewitten it, and pushed it to Emacs master. > The debug log repeats itself starting around line 7783. > Find it attached (again, truncated to 10000 lines). Hmm, the debug traces tell us: --8<---------------cut here---------------start------------->8--- 00:54:42.448637 tramp-send-command (6) # cd /tmp/tramp-test1ig90x/foo/\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}/ && \ln -sf /tmp/tramp-test1ig90x/foo/\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}/\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\} ./\ foo\ bar\ baz\ \@foo\@bar\@baz\@\$foo\$bar\$\$baz\$-foo-bar-baz-\%foo\%bar\%baz\%\&foo\&bar\&baz\&\?foo\?bar\?baz\?\*foo\+bar\*baz\+\'foo\"bar\'baz\"\#foo\~bar\#baz\~\!foo\|bar\!baz\|\:foo\;bar\:baz\;\bar\\(foo\)bar\(baz\)\[foo\]bar\[baz\]\{foo\}bar\{baz\}foo 2>/dev/null; echo tramp_exit_status $? --8<---------------cut here---------------end--------------->8--- Again, one line. Here I cannot fix too much, the files are such long in the testsuite. And NetBSD has restricted ressources, for example it reports PIPE_BUF being 512, where other systems report 4096 ... So I exclude this special "ln -sf" call for NetBSD, such longuish file names shouldn't happen in the wild (I hope). See the reworked patch for tramp-tests.el. > Bruno Best regards, Michael.