scripts noerror, noout, noerr qui fonctionnent comme les fonctions du même nom

This commit is contained in:
Jephte CLAIN 2016-02-29 20:36:10 +04:00
parent 66249c9d46
commit 0cf8e041f5
3 changed files with 12 additions and 0 deletions

4
noerr Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
[ $# -gt 0 ] || exit 0
"$@" 2>/dev/null

4
noerror Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
[ $# -gt 0 ] || set :
"$@" || exit 0

4
noout Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
[ $# -gt 0 ] || exit 0
"$@" >/dev/null