Last active 1748862246

nithir's Avatar nithir revised this gist 1748862246. Go to revision

No changes

nithir's Avatar nithir revised this gist 1730187981. Go to revision

1 file changed, 1 insertion, 1 deletion

shell_non_interactif.sh

@@ -11,7 +11,7 @@ case $- in
11 11 *) return;;
12 12 esac
13 13
14 - ou
14 + #ou
15 15
16 16 if [[ ! $- == *i* ]]; then
17 17 # si le shell n'est pas interactif

nithir's Avatar nithir revised this gist 1728457768. Go to revision

1 file changed, 20 insertions

shell_non_interactif.sh(file created)

@@ -0,0 +1,20 @@
1 + if [[ $- == *i* ]]; then
2 + # action réservé à un shell interactif
3 + cat machin.bidule
4 + fi
5 +
6 + # ou placer ce qui suis au début du .bashrc de façon a interrompre le chargement de bashrc si le script n'est pas interactif.
7 +
8 + # If not running interactively, don't do anything
9 + case $- in
10 + *i*) ;;
11 + *) return;;
12 + esac
13 +
14 + ou
15 +
16 + if [[ ! $- == *i* ]]; then
17 + # si le shell n'est pas interactif
18 + return 0
19 + fi
20 +
Newer Older