GNU bug report logs - #56963
29.0.50; trampified make-empty-file on macOS

Previous Next

Package: emacs;

Reported by: dick.r.chiang <at> gmail.com

Date: Thu, 4 Aug 2022 00:35:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56963 in the body.
You can then email your comments to 56963 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 00:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to dick.r.chiang <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Aug 2022 00:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: dick.r.chiang <at> gmail.com
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: 29.0.50; trampified make-empty-file on macOS
Date: Wed, 03 Aug 2022 16:53:08 -0400
Someone with a mac might try `make test/lisp/net/tramp-tests`
to verify the new tramp-test10-write-region (21afc26) works
as well as it does on linux.

I get this consistently in a macOS 11.6.8 cloud env I've no
control over:

Test tramp-test10-write-region condition:
    (ert-test-failed
     ((should
       (string-equal
	(buffer-string)
	""))
      :form
      (string-equal "-n \n" "")
      :value nil :explanation
      (arrays-of-different-length 4 0 "-n \n" "" first-mismatch-at 0)))



In Commercial Emacs 0.3.1snapshot 2f899ba in dev (upstream 29.0.50, x86_64-pc-linux-gnu) built on dick
Repository revision: 2f899bac86a9d6ca94db931da9407a7f35745b8a
Repository branch: dev
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.4 LTS

Configured using:
 'configure WERROR_CFLAGS=-Werror --prefix=/home/dick/.local
 --with-tree-sitter CC=gcc-10
 PKG_CONFIG_PATH=/home/dick/.local/lib/pkgconfig CXX=gcc-10'
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
TREE_SITTER LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM
XINPUT2 XPM GTK3 ZLIB
Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Magit Rev

Minor modes in effect:
  goto-address-mode: t
  global-git-commit-mode: t
  shell-dirtrack-mode: t
  bug-reference-mode: t
  projectile-mode: t
  flx-ido-mode: t
  override-global-mode: t
  global-hl-line-mode: t
  hl-line-mode: t
  winner-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/dick/gomacro-mode/gomacro-mode hides /home/dick/.emacs.d/elpa/gomacro-mode-20200326.1103/gomacro-mode
/home/dick/.emacs.d/elpa/go-rename-20190805.2101/go-rename hides /home/dick/.emacs.d/elpa/go-mode-1.6.0/go-rename
/home/dick/.emacs.d/elpa/go-guru-20181012.330/go-guru hides /home/dick/.emacs.d/elpa/go-mode-1.6.0/go-guru
/home/dick/org-gcal.el/org-gcal hides /home/dick/.emacs.d/elpa/org-gcal-0.3/org-gcal
/home/dick/.emacs.d/elpa/request-deferred-0.2.0/request-deferred hides /home/dick/.emacs.d/elpa/request-0.3.3/request-deferred
/home/dick/.emacs.d/elpa/chess-2.0.5/_pkg hides /home/dick/.local/share/emacs/site-lisp/_pkg
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-pos hides /home/dick/.local/share/emacs/site-lisp/chess-pos
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-module hides /home/dick/.local/share/emacs/site-lisp/chess-module
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ucb hides /home/dick/.local/share/emacs/site-lisp/chess-ucb
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-scid hides /home/dick/.local/share/emacs/site-lisp/chess-scid
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-puzzle hides /home/dick/.local/share/emacs/site-lisp/chess-puzzle
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-irc hides /home/dick/.local/share/emacs/site-lisp/chess-irc
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-network hides /home/dick/.local/share/emacs/site-lisp/chess-network
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-autosave hides /home/dick/.local/share/emacs/site-lisp/chess-autosave
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-engine hides /home/dick/.local/share/emacs/site-lisp/chess-engine
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-tutorial hides /home/dick/.local/share/emacs/site-lisp/chess-tutorial
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-german hides /home/dick/.local/share/emacs/site-lisp/chess-german
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-file hides /home/dick/.local/share/emacs/site-lisp/chess-file
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-random hides /home/dick/.local/share/emacs/site-lisp/chess-random
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-stockfish hides /home/dick/.local/share/emacs/site-lisp/chess-stockfish
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-pgn hides /home/dick/.local/share/emacs/site-lisp/chess-pgn
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-kibitz hides /home/dick/.local/share/emacs/site-lisp/chess-kibitz
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-eco hides /home/dick/.local/share/emacs/site-lisp/chess-eco
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-display hides /home/dick/.local/share/emacs/site-lisp/chess-display
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-var hides /home/dick/.local/share/emacs/site-lisp/chess-var
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-test hides /home/dick/.local/share/emacs/site-lisp/chess-test
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ply hides /home/dick/.local/share/emacs/site-lisp/chess-ply
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-message hides /home/dick/.local/share/emacs/site-lisp/chess-message
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ics1 hides /home/dick/.local/share/emacs/site-lisp/chess-ics1
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-phalanx hides /home/dick/.local/share/emacs/site-lisp/chess-phalanx
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-game hides /home/dick/.local/share/emacs/site-lisp/chess-game
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-log hides /home/dick/.local/share/emacs/site-lisp/chess-log
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-plain hides /home/dick/.local/share/emacs/site-lisp/chess-plain
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-perft hides /home/dick/.local/share/emacs/site-lisp/chess-perft
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-glaurung hides /home/dick/.local/share/emacs/site-lisp/chess-glaurung
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ai hides /home/dick/.local/share/emacs/site-lisp/chess-ai
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-fruit hides /home/dick/.local/share/emacs/site-lisp/chess-fruit
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-uci hides /home/dick/.local/share/emacs/site-lisp/chess-uci
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-epd hides /home/dick/.local/share/emacs/site-lisp/chess-epd
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-database hides /home/dick/.local/share/emacs/site-lisp/chess-database
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-link hides /home/dick/.local/share/emacs/site-lisp/chess-link
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-transport hides /home/dick/.local/share/emacs/site-lisp/chess-transport
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-none hides /home/dick/.local/share/emacs/site-lisp/chess-none
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-polyglot hides /home/dick/.local/share/emacs/site-lisp/chess-polyglot
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-crafty hides /home/dick/.local/share/emacs/site-lisp/chess-crafty
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-chat hides /home/dick/.local/share/emacs/site-lisp/chess-chat
/home/dick/.emacs.d/elpa/chess-2.0.5/chess hides /home/dick/.local/share/emacs/site-lisp/chess
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-images hides /home/dick/.local/share/emacs/site-lisp/chess-images
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-gnuchess hides /home/dick/.local/share/emacs/site-lisp/chess-gnuchess
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-fen hides /home/dick/.local/share/emacs/site-lisp/chess-fen
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ics hides /home/dick/.local/share/emacs/site-lisp/chess-ics
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-ics2 hides /home/dick/.local/share/emacs/site-lisp/chess-ics2
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-common hides /home/dick/.local/share/emacs/site-lisp/chess-common
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-input hides /home/dick/.local/share/emacs/site-lisp/chess-input
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-announce hides /home/dick/.local/share/emacs/site-lisp/chess-announce
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-clock hides /home/dick/.local/share/emacs/site-lisp/chess-clock
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-sound hides /home/dick/.local/share/emacs/site-lisp/chess-sound
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-sjeng hides /home/dick/.local/share/emacs/site-lisp/chess-sjeng
/home/dick/.emacs.d/elpa/chess-2.0.5/chess-algebraic hides /home/dick/.local/share/emacs/site-lisp/chess-algebraic
/home/dick/.emacs.d/elpa/transient-0.3.7snapshot/transient hides /home/dick/emacs/dev/lisp/transient

Features:
(shadow bbdb-message footnote emacsbug telega-filter telega-ins
telega-folders telega-inline telega-tdlib telega-server telega-core
telega-customize cursor-sensor vc-hg vc-bzr vc-src vc-sccs vc-cvs vc-rcs
log-view elpaso elpaso-admin elpaso-milky elpaso-defs emms-source-file
locate dos-w32 find-cmd gnus-html ag vc-svn find-dired goto-addr
magit-extras mule-util gravatar dns face-remap magit-patch-changelog
magit-patch magit-submodule magit-obsolete magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit magit-repos magit-apply magit-wip magit-log
which-func imenu magit-diff smerge-mode diff git-commit log-edit
pcvs-util add-log magit-core magit-margin magit-transient magit-process
with-editor server magit-mode transient tramp-archive tramp-gvfs
tramp-cache zeroconf cl-print debug backtrace shr-color org-element
avl-tree ol-eww eww xdg url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus
nnselect ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb
ol-w3m ol-doi org-link-doi org-tempo tempo org org-macro org-footnote
org-pcomplete org-list org-faces org-entities org-version ob-R
ob-emacs-lisp ob-ein ein-cell ein-shared-output ein-output-area
ein-kernel ein-ipdb ein-query ein-events ein-websocket websocket bindat
ein-node ewoc ein-log ein-classes ein-core ein ein-utils deferred ob
ob-tangle org-src ob-ref ob-lob ob-table ob-exp ob-comint ob-core
ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs
org-loaddefs cal-menu calendar cal-loaddefs flow-fill textsec
uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp
misearch multi-isearch google-translate sort smiley mm-archive mail-extr
gnus-async gnus-ml gnus-notifications gnus-fun notifications gnus-kill
gnus-dup disp-table utf-7 url-cache benchmark nnrss nnfolder nndiscourse
rbenv nnhackernews nntwitter nntwitter-api bbdb-gnus gnus-demon nntp
nnmairix nnml nnreddit gnus-topic url-http url-auth url-gw
network-stream nsm request virtualenvwrapper gud json-rpc python
gnus-score score-mode gnus-bcklg gnus-srvr gnus-cite anaphora bbdb-mua
bbdb-com bbdb bbdb-site timezone gnus-delay gnus-draft gnus-cache
gnus-agent gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime
gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom nndraft nnmh
gnus-group mm-url gnus-undo use-package use-package-delight
use-package-diminish gnus-start gnus-dbus dbus xml gnus-cloud nnimap
nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message
sendmail yank-media puny dired-x dired dired-loaddefs rfc822 mml mml-sec
epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader
gnus-win blamer a tramp tramp-loaddefs trampver tramp-integration
cus-start files-x tramp-compat shell pcomplete parse-time iso8601
ls-lisp pulse ivy delsel colir ivy-overlay ffap dumb-jump s vc-git
diff-mode vc vc-dispatcher bug-reference cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs shortdoc
completion help-fns radix-tree paredit-ext paredit inf-ruby ruby-mode
smie company pcase haskell-interactive-mode haskell-presentation-mode
haskell-process haskell-session haskell-compile haskell-mode
haskell-cabal haskell-utils haskell-font-lock haskell-indentation
haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports
haskell-complete-module haskell-ghc-support noutline outline
flymake-proc flymake warnings etags fileloop generator dabbrev
haskell-customize hydra lv use-package-ensure solarized-theme
solarized-definitions projectile lisp-mnt ibuf-ext ibuffer
ibuffer-loaddefs thingatpt magit-autorevert autorevert filenotify
magit-git magit-base magit-section format-spec crm dash rx compat-27
compat-26 compat grep compile comint ansi-color gnus nnheader range
mail-utils mm-util mail-prsvr gnus-util text-property-search time-date
flx-ido flx google-translate-default-ui google-translate-core-ui
facemenu color ido google-translate-core google-translate-tk
google-translate-backend use-package-bind-key bind-key auto-complete
easy-mmode advice edmacro kmacro popup cus-edit pp cus-load icons
wid-edit emms-player-mplayer emms-player-simple emms emms-compat
cl-extra help-mode xref project use-package-core derived hl-line winner
ring debbugs-autoloads eglot-autoloads elpaso-disc-autoloads
elpaso-autoloads find-func finder-inf go-mode-autoloads
json-reformat-autoloads json-snatcher-autoloads magit-autoloads
projectile-autoloads sml-mode-autoloads epl-autoloads
tornado-template-mode-autoloads typescript-mode-autoloads
request-autoloads info wordnut-autoloads package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile cconv cldefs url-vars cl-loaddefs
cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tree-sitter tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
faces cus-face macroexp files window text-properties overlay sha1 md5
base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
emacs)

Memory information:
((conses 16 2609419 243763)
 (symbols 48 58503 0)
 (strings 32 302230 64066)
 (string-bytes 1 9419838)
 (vectors 16 155597)
 (vector-slots 8 3736428 266246)
 (floats 8 1618 2343)
 (intervals 56 372748 3853)
 (buffers 1000 65))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 05:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 56963 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: dick.r.chiang <at> gmail.com
Cc: 56963 <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 07:28:58 +0200
[Message part 1 (text/plain, inline)]
dick.r.chiang <at> gmail.com writes:

Hi,

> Someone with a mac might try `make test/lisp/net/tramp-tests`
> to verify the new tramp-test10-write-region (21afc26) works
> as well as it does on linux.
>
> I get this consistently in a macOS 11.6.8 cloud env I've no
> control over:
>
> Test tramp-test10-write-region condition:
>     (ert-test-failed
>      ((should
>        (string-equal
> 	(buffer-string)
> 	""))
>       :form
>       (string-equal "-n \n" "")
>       :value nil :explanation
>       (arrays-of-different-length 4 0 "-n \n" "" first-mismatch-at 0)))

I'd like to test, but I have no mac. Could you please instrument the
respective code snippet in `tramp-test10-write-region':

[Message part 2 (text/plain, inline)]
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 63ccd05a26..18c1e509ca 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -2483,6 +2483,7 @@ tramp-test10-write-region

 	    ;; Write empty string.  Used for creation of temprorary files.
 	    ;; Since Emacs 27.1.
+            (tramp--test-instrument-test-case 10
 	    (when (fboundp 'make-empty-file)
 	      (with-no-warnings
 		(should-error
@@ -2492,7 +2493,7 @@ tramp-test10-write-region
 		(make-empty-file tmp-name)
 		(with-temp-buffer
 		  (insert-file-contents tmp-name)
-		  (should (string-equal (buffer-string) "")))))
+		  (should (string-equal (buffer-string) ""))))))

 	    ;; Write partly.
 	    (with-temp-buffer
[Message part 3 (text/plain, inline)]
Send the resulting tramp-tests.log for analysis.

My glass ball tells me that it could be related to bug#55767.

Best regards, Michael.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 09:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 56963 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 56963 <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 11:04:55 +0200
dick <dick.r.chiang <at> gmail.com> writes:

Hi,

> Oh, it's probably just "echo -n" not being portable in
> tramp-sh-handle-write-region.  I attach the instrumented log
> as per your instructions.

Thanks. Well, there is a missing space in the command:

> 2022-08-04T08:34:37.0618380Z 08:29:48.506172 tramp-send-command (6) # echo -n "">/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tramp-testB8ibE4

Would it work if the command is

--8<---------------cut here---------------start------------->8---
echo -n "" >/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tramp-testB8ibE4
--8<---------------cut here---------------end--------------->8---

If not, what else would be portable? Something like this?

--8<---------------cut here---------------start------------->8---
cat </dev/null >/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tramp-testB8ibE4
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 09:17:02 GMT) Full text and rfc822 format available.

Message #14 received at 56963 <at> debbugs.gnu.org (full text, mbox):

From: dick <dick.r.chiang <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 56963 <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 04:45:12 -0400
[Message part 1 (text/plain, inline)]
Oh, it's probably just "echo -n" not being portable in
tramp-sh-handle-write-region.  I attach the instrumented log
as per your instructions.

[3.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 09:35:01 GMT) Full text and rfc822 format available.

Message #17 received at 56963 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 56963 <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 11:34:09 +0200
dick <dick.r.chiang <at> gmail.com> writes:

Hi,

> The `cat` invocation sounds like a good bet.  I've always been
> nonplussed by `echo`.  Also, https://apple.stackexchange.com/q/173836.

Thanks for confirmation. Let me do some regression tests with other
remote targets, and if successful I'll commit.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56963; Package emacs. (Thu, 04 Aug 2022 10:47:01 GMT) Full text and rfc822 format available.

Message #20 received at 56963 <at> debbugs.gnu.org (full text, mbox):

From: dick <dick.r.chiang <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 56963 <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 05:25:28 -0400
The `cat` invocation sounds like a good bet.  I've always been
nonplussed by `echo`.  Also, https://apple.stackexchange.com/q/173836.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 04 Aug 2022 16:16:01 GMT) Full text and rfc822 format available.

Notification sent to dick.r.chiang <at> gmail.com:
bug acknowledged by developer. (Thu, 04 Aug 2022 16:16:02 GMT) Full text and rfc822 format available.

Message #25 received at 56963-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 56963-done <at> debbugs.gnu.org
Subject: Re: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 18:14:58 +0200
Version: 29.1

Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi,

>> The `cat` invocation sounds like a good bet.  I've always been
>> nonplussed by `echo`.  Also, https://apple.stackexchange.com/q/173836.
>
> Thanks for confirmation. Let me do some regression tests with other
> remote targets, and if successful I'll commit.

All good, so I have pushed the change to master. Closing the bug.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Sep 2022 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.