dakle, export EDITOR=vim postoji, i kada pozovem ko korisnik(root ili ja) editor je vim ali kad pozovem skriptu sa sudo onda postavi nano???
Zadnja izmjena: simke, dana/u 13 ožu 2012, 18:25, ukupno mijenjano 1 put.
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.
max360se je napisao/la:Mozda umjesto EDITOR=nano moras stavit EDITOR=vim
nemogu, mora biti, ako nema exsport EDITOR=štagod, onda nano. i to radi, osim kad sa sudo pozovem skriptu.
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.
Lutherus je napisao/la:jer ti je default editor za root nano pa ti odma baci njega. puno lakše je kad imaš samo jedan txt editor na sustavu.
da, kao što sam reko, i kad ko obični jusre i root pozovem skriptu postavi dobro, a kad pozovem sa sudo ne.
jel mogu kako drugačije provjeriti dali "export EDITOR=štagod" postoji
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.
!/bin/bash
if [[ -z $EDITOR ]]; then
echo "ne"
else
echo "da"
fi
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.
kad , šta, sa sudo? aj iskopiraj terminal ovdje. probaj sa i bez sudo je pozvat
I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.