19 lines
		
	
	
		
			540 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			540 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
 | |
| source "$(dirname -- "$0")/../src/nulib.sh" || exit 1
 | |
| #NULIB_NO_DISABLE_SET_X=1
 | |
| 
 | |
| args=(
 | |
|     "tester diverses fonctions de saisie"
 | |
| )
 | |
| parse_args "$@"; set -- "${args[@]}"
 | |
| 
 | |
| choices=(first second third)
 | |
| choice=
 | |
| simple_menu -t "choix sans valeur par défaut" -m "le prompt" choice choices
 | |
| enote "vous avez choisi choice=$choice"
 | |
| 
 | |
| choice=second
 | |
| simple_menu -t "choix avec valeur par défaut" -m "le prompt" choice choices
 | |
| enote "vous avez choisi choice=$choice"
 |