deneyin koşu: Sen RC=0
alacak
which python_bla || which python3_bla_bla || true
echo $?
0
(bla unutmayın). Bir sonraki komuta başarıyla geçmek için bir yapı anlamına gelir. Burada python_bla
veya python3_bla_bla
yok biliyorum, ama yine de komut rc=0
Örnek verdi: üç komutları aşağıdakilerden RC Kontrol, ben yanlış için date
komuta yazımını değişti ama true
0
kalması RC
neden oluyor.
date;echo $?
Thu Nov 9 01:40:44 CST 2017
0
datea;echo $?
If 'datea' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf datea
127
datea||true;echo $?
If 'datea' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf datea
0
Not:
command || :
Evet, ama 'TRUE sordum. –
hangi python' söyler 'gelmiyor mu? piton versiyonu – bhansa
@EladWeiss, şimdi benim düzenlemeyi hesap lütfen. – RavinderSingh13