Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.sys.mac.programmation > #2072
| Path | csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Fleuger <g4fleurot@free.fr.invalid> |
| Newsgroups | fr.comp.sys.mac.programmation |
| Subject | Re: AppleScript me prend le chou |
| Date | Fri, 26 Nov 2021 12:57:22 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 40 |
| Message-ID | <snqlji$45d$1@dont-email.me> (permalink) |
| References | <snlrn0$2h7$1@dont-email.me> <snnh1s$7mg$1@dont-email.me> <j0bh0eFkg9U1@mid.individual.net> |
| Reply-To | g5fleurot@free.fr |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 26 Nov 2021 12:57:22 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="ac11df3ff630838f0ddd6534439034ee"; logging-data="4269"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iaWMcxq4byfpOu82k9X6Z" |
| User-Agent | MacCafe/2.06 (macOS 10.14.6 (18G9323) - iMac14,3) |
| Cancel-Lock | sha1:Dvs/K8/DqvQfRTi+wCJxZVN02Jc= sha256:kq/wPe+iCQZB6RrjGUBwYubEYW7Oy0jh9dJAbeTC0pQ= sha1:i309WvQij85rbuaVs0KKib7XQLQ= |
| In-Reply-To | <j0bh0eFkg9U1@mid.individual.net> |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABe0lEQVR4nOyVyRHDIAxFKSm luKSUklJcVm7OMiHeJPEFwsJjDrowBr+nBcI0TeHM4Q7QBbwBuoA3QBfwBugC3gBdwPKwcQxTDG S9KYEI+HyuYbn1JgU+kDGWWd+uNydAgUZYas1Sokr2EQGruTDJPCrAtVSJhEnbIC2UEj1UQMrkS uxxm4OBP1xAyuRKZgn/ixoDbVaBHRwhYD3AJjNA9fk/CIEmKsCJ7ACBGXC7hZB22lbnkCEOd91h KbDaLzMpoJGQ3gCXl1grQM1BjUeL42I/1EpIQqUCEpP4ca5EGN57h3lvbrsgLMlNWpEtfEm2TQV QiRwB6Z+pf8sHDjoJDTwCXS4QJQbwsISACEkkC0oa9COwElnwRII0bYuVGKgCl30WOAEOzxycsY QEJZALrrr1VIPGCMDwBcOaJZAaPE7A6oYxERChNm2hhS8BVwtAfW0wlNUFVhIAfA1oGwEm+7WBT QS+G4n+94hTw19XoKVwB7i8wAsAAP//AwAvt+R/mbrp3wAAAABJRU5ErkJggg== |
| X-Face | 6e|FS-+[tsA{3yQ^i0Js:O.\FWpq/o8_:3=f90joA<?I-D]V;]in~ov,0@~N9 = b$MVQKAt:.dm3~)#Xt/M}^S=(d!?$J_TfiH'!Z8z[;I@DS]*:2.9lxj%k]m|rhOWzcZ Tnd1(>^LE~Q |
| Xref | csiph.com fr.comp.sys.mac.programmation:2072 |
Show key headers only | View raw
Le 26 novembre 2021 à 08:34, pehache a écrit ceci :
> Je n'avais pas d'idée toute faite sur la question, juste des pistes. Par
> exemple que le shell lancé par Apple Script n'est peut-être pas le même,
> et/ou que sa configuration est différente, de celui du Terminal. Entre
> les différents shells il y a parfois des comportements différents.
> D'ailleurs je vois que "echo -n toto" ne se comporte pas pareil dans
> bash et dans zsh (du moins avec leurs configs par défaut).
>
> Et aussi de tester individuellement chacune des 3 commandes enchaînées
> par les pipes, pour voir laquelle est "fautive".
Merci pour tes explications.
J'ai zsh sur mon mac
➜ ~ echo toto
toto
➜ ~ echo -n "toto"
toto%
➜ ~ echo -e toto
toto
➜ ~ echo -e "toto"
toto
L'option -n destinée à supprimer le caractère de fin de ligne ne
fonctionne pas alors que -e fonctionne.
Le man echo apple date de 2003
Sur mon Ubuntu virtualisé il date de 2019 et c'est bash et différend de
<https://ss64.com/bash/echo.html>
L'option -n supprime le retour à ligne.
Le nouveau prompt s'inscrit en suivant directement sans espace.
fleurotg@fleurotg-VirtualBox:~$ echo -n toto
totofleurotg@fleurotg-VirtualBox:~$ echo toto
toto
fleurotg@fleurotg-VirtualBox:~$
--
Gérard FLEUROT
Back to fr.comp.sys.mac.programmation | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-24 17:10 +0000
Re: AppleScript me prend le chou pehache <pehache.7@gmail.com> - 2021-11-24 23:39 +0100
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-25 08:26 +0000
Re: AppleScript me prend le chou DV <dv@reply-to.not.invalid> - 2021-11-25 09:15 +0000
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-25 08:21 +0000
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-25 08:50 +0000
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-25 10:34 +0000
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-25 10:57 +0000
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-25 13:52 +0000
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-25 16:17 +0000
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-25 16:26 +0000
Re: AppleScript me prend le chou pehache <pehache.7@gmail.com> - 2021-11-26 08:34 +0100
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-26 12:57 +0000
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-26 14:11 +0000
Re: AppleScript me prend le chou Fleuger <g4fleurot@free.fr.invalid> - 2021-11-26 14:26 +0000
Re: AppleScript me prend le chou josephb@nowhere.invalid (Joseph-B) - 2021-11-26 11:22 +0100
Re: AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-26 11:44 +0000
Re: AppleScript me prend le chou Olivier Miakinen <om+news@miakinen.net> - 2021-11-27 17:06 +0100
Re: AppleScript me prend le chou Olivier Miakinen <om+news@miakinen.net> - 2021-11-27 17:10 +0100
Re: AppleScript me prend le chou Olivier Miakinen <om+news@miakinen.net> - 2021-12-01 22:10 +0100
csiph-web