Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.os.unix > #8107

shells et opérations sur le texte

Path csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Thomas <fantome.forums.tDeContes@free.fr.invalid>
Newsgroups fr.comp.os.unix
Subject shells et opérations sur le texte
Date Tue, 22 Aug 2023 14:43:50 +0200
Organization A noiseless patient Spider
Lines 23
Message-ID <uc2ai6$2dkat$1@dont-email.me> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Tue, 22 Aug 2023 12:43:50 -0000 (UTC)
Injection-Info dont-email.me; posting-host="e75209598c1b54847b5604cb67e052b4"; logging-data="2543965"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IXRGDHkPbhuBM/ZJ+tJQm7HRkIYuynbQ="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0
Cancel-Lock sha1:qYDO2GPmMS2ngb8d4N5TZqb1rZs=
Content-Language fr-FR
Xref csiph.com fr.comp.os.unix:8107

Show key headers only | View raw


bonjour :-)


il s'agit du script suivant :

#!/bin/sh -
fuseauHoraire="${fuseauHoraire:0:1} 10#${fuseauHoraire:1:2} *60*60"


sur mon vieux mac, il fonctionnait sans pb.

sur mon nouveau pc, avec Ubuntu 22, il dit "Bad substitution".
Si je supprime "#!/bin/sh -", ça marche. (cad, si je comprend bien, si 
je reste explicitement en bash.)


est-ce que qqn pourrait m'expliquer svp ce qui se passe, comment ça 
marche, et comment bien écrire les scripts pour faire ce que je veux, svp ?


-- 
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/

Back to fr.comp.os.unix | Previous | NextNext in thread | Find similar | Unroll thread


Thread

shells et opérations sur le texte Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2023-08-22 14:43 +0200
  Re: shells et opérations sur le texte Marc SCHAEFER <schaefer@alphanet.ch> - 2023-08-23 15:09 +0000
    Re: shells et opérations sur le texte william <blop@no.spam> - 2023-09-18 21:04 +0000
    Re: shells et opérations sur le texte Nicolas George <nicolas$george@salle-s.org> - 2023-09-18 21:25 +0000
      Re: shells et opérations sur le texte pehache <pehache.7@gmail.com> - 2023-09-20 11:31 +0000
        Re: shells et opérations sur le texte Nicolas George <nicolas$george@salle-s.org> - 2023-09-20 14:54 +0000
  Re: shells et opérations sur le texte Christian Weisgerber <naddy@mips.inka.de> - 2023-08-23 15:18 +0000
    Re: shells et opérations sur le texte Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2023-08-24 01:46 +0200

csiph-web