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


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

Re: [bash] select

Path csiph.com!pasdenom.info!paganini.bofh.team!usenet.ovh!news.usenet.ovh!.POSTED!not-for-mail
From Christophe PEREZ <chris@novazur.fr>
Newsgroups fr.comp.os.unix
Subject Re: [bash] select
Date Thu, 14 Dec 2023 18:51:49 -0000 (UTC)
Organization Alfa Network En Travaux
Message-ID <ulfis5$3fo8j$1@news.usenet.ovh> (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:51:49 -0000 (UTC)
Injection-Info news.usenet.ovh; posting-account="christophe"; logging-data="3662099"; mail-complaints-to="abuse@usenet.ovh"
User-Agent Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock sha256:HR/7xz9Oxp8F6F2eqrnJcFb161dpKDwdy46m2yG7N/8=
Xref csiph.com fr.comp.os.unix:8129

Show key headers only | View raw


Le Thu, 14 Dec 2023 15:21:02 -0000 (UTC), Jo Engo a écrit :

> avec liste-sauvegarde qui contient eg.
> 
> des trucs bizarres
> un truc très important
> quelques
> deux de plus
> l'autre

Ah, enfin des détails sur le contexte.
Il aura fallu du temps et des posts inutiles jusque là.

Sans parler du "mais on me demande expressément de ne pas utilise IFS"

C'est qui "on" ? Le prof ?

unset tableau
while read LINE ; do
	tableau+=("$LINE")
done < liste-sauvegarde
select item in "${tableau[@]}" ; do
	echo $item
done

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


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