tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quotes missing in stackexchange


From: Michael Albinus
Subject: Re: quotes missing in stackexchange
Date: Sat, 11 Jul 2020 14:52:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

Hi Dan,

> On
> https://android.stackexchange.com/questions/226638/how-to-use-multibyte-file-names-in-adb-shell?noredirect=1#comment295972_226638
> which I need 50 points to comment on, I see:
>    It doesn't work. echo x | sed -re s/x/\x01\xF3\x08/g results in
> x01xF3x08 – Michael Albinus
> Odd, don't you need to quote: \\ or '\'?

It doesn't matter:

--8<---------------cut here---------------start------------->8---
zeroflte:/ $ echo x | sed -re s/x/\x01\xF3\x08/g
x01xF3x08
zeroflte:/ $ echo x | sed -re 's/x/\x01\xF3\x08/g'                         
x01xF3x08
zeroflte:/ $ echo x | sed -re s/x/\\x01\\xF3\\x08/g                        
x01xF3x08
zeroflte:/ $ echo x | sed -re 's/x/\\x01\\xF3\\x08/g'                      
\x01\xF3\x08
--8<---------------cut here---------------end--------------->8---

However, meanwhile I've implemented a workaround. If a command contains
a multibyte char, I don't evaluate it in the interactive adb
shell. Instead, I call from my local shell "adb shell COMMAND". This
seems to work.

You might try the recent master in Emacs or Tramp git.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]