Re: quotes missing in stackexchange

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: quotes missing in stackexchange

Michael Albinus
積丹尼 Dan Jacobson <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: quotes missing in stackexchange

積丹尼 Dan Jacobson
>>>>> "MA" == Michael Albinus <[hidden email]> writes:
MA> However, meanwhile I've implemented a workaround. If a command contains
MA> a multibyte char, I don't evaluate it in the interactive adb
MA> shell. Instead, I call from my local shell "adb shell COMMAND". This
MA> seems to work.

Maybe just send everything that way. More expensive?

Reply | Threaded
Open this post in threaded view
|

Re: quotes missing in stackexchange

Michael Albinus
積丹尼 Dan Jacobson <[hidden email]> writes:

>>>>>> "MA" == Michael Albinus <[hidden email]> writes:
> MA> However, meanwhile I've implemented a workaround. If a command contains
> MA> a multibyte char, I don't evaluate it in the interactive adb
> MA> shell. Instead, I call from my local shell "adb shell COMMAND". This
> MA> seems to work.
>
> Maybe just send everything that way. More expensive?

Likely yes. But I have no numbers.

Best regards, Michael.