Groups | Search | Server Info | Login | Register


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

Re: [bash] select

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From Christian Weisgerber <naddy@mips.inka.de>
Newsgroups fr.comp.os.unix
Subject Re: [bash] select
Date Thu, 14 Dec 2023 18:38:51 -0000 (UTC)
Message-ID <slrnunmitr.19it.naddy@lorvorc.mips.inka.de> (permalink)
References <ul1sek$d5$2@rasp.pasdenom.info> <ul2ld2$d5$4@rasp.pasdenom.info> <ul4qc3$d5$8@rasp.pasdenom.info> <slrnunelhu.269.naddy@lorvorc.mips.inka.de> <ulf6gu$r3t$1@rasp.pasdenom.info>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 14 Dec 2023 18:38:51 -0000 (UTC)
Injection-Info lorvorc.mips.inka.de; posting-host="localhost:::1"; logging-data="42590"; mail-complaints-to="usenet@mips.inka.de"
User-Agent slrn/1.0.3 (FreeBSD)
Xref csiph.com fr.comp.os.unix:8130

Show key headers only | View raw


On 2023-12-14, Jo Engo <yl@icite.fr> wrote:

>>    mapfile -t tableau <$filee
>>    select item in "${tableau[@]}"
>
> ne marche pas : j'ai un mot par item et non la phrase souhaitée (qui se 
> trouvait dns la ligne. Soyons précis je fais exactement :
>  « 
> mapfile -t tableau < liste-sauvegarde
> select item in ${tableau[@]}

Il faut utiliser "${tableau[@]}" avec les " " pour la substitution
correcte.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de

Back to fr.comp.os.unix | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[bash] select Jo Engo <yl@icite.fr> - 2023-12-09 14:09 +0000
  Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-09 21:15 +0000
    Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-09 21:59 +0000
    Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-10 16:52 +0000
      Re: [bash] select Christian Weisgerber <naddy@mips.inka.de> - 2023-12-11 18:34 +0000
        Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-13 14:38 +0000
          Re: [bash] select Christian Weisgerber <naddy@mips.inka.de> - 2023-12-13 23:00 +0000
        Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-14 15:21 +0000
          Re: [bash] select Jo Engo <yl@icite.fr> - 2023-12-14 15:43 +0000
          Re: [bash] select Christophe PEREZ <chris@novazur.fr> - 2023-12-14 18:51 +0000
          Re: [bash] select Christian Weisgerber <naddy@mips.inka.de> - 2023-12-14 18:38 +0000
  Re: [bash] select Christian Weisgerber <naddy@mips.inka.de> - 2023-12-11 18:32 +0000

csiph-web