[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Convert the shell command used in emacs init-file into its normal ve
From: |
Eli Zaretskii |
Subject: |
Re: Convert the shell command used in emacs init-file into its normal version. |
Date: |
Wed, 09 Jun 2021 20:17:25 +0300 |
> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Wed, 9 Jun 2021 22:21:58 +0800
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
>
> > > "curl -s https://api.mathpix.com/v3/latex -X POST -H \"app_id: %s\" -H
> > > \"app_key: %s\" -H \"Content-Type: application/json\" --data
> > > \"{\\\"src\\\":\\\"%s\\\",\\\"formats\\\":
> > > [\\\"latex_styled\\\"],\\\"format_options\\\":{\\\"latex_styled\\\":
> > > {\\\"transforms\\\": [\\\"rm_spaces\\\"]}}}\""
> > >
> > > I want to obtain its normal version and test it under the system's
> > > shell terminal. Any hints for deleting the escape characters correctly
> > > from the above command in Emacs way?
> >
> > Did you try using split-string-and-unquote?
>
> To be frank, no. It's an eshell command, and I'm unfamiliar with it.
> Any hints for using it in this case?
Sorry, I don't understand: you want hints for using what?
And how does eshell come into play here, I don't think you mentioned
that before.
- Re: Convert the shell command used in emacs init-file into its normal version., (continued)
Re: Convert the shell command used in emacs init-file into its normal version., Yuri Khan, 2021/06/09
Re: Convert the shell command used in emacs init-file into its normal version., Eli Zaretskii, 2021/06/09