HackerTrans
トップ新着トレンドコメント過去質問紹介求人

laptopdev

no profile record

コメント

laptopdev
·3 か月前·議論
showdef () { local file= if [[ $1 == -f ]] then file=$2 shift 2 fi if [[ -n $file ]] then ( shopt -s expand_aliases source "$file" 2> /dev/null showdef "$1" ) return fi if alias "$1" &> /dev/null then alias "$1" elif declare -f "$1" &> /dev/null then declare -f "$1" elif [[ -n ${!1} ]] then echo "${!1}" else echo "No alias, function, or environment variable found for '$1'" fi }

This looks up the definition of a shell name — alias, function, or environment variable — and prints it. with -f [.bashrc (for example)] it sources the given file in a subshell before running the lookup in that subshell.
laptopdev
·8 か月前·議論
Carnivore
laptopdev
·9 か月前·議論
If computer usage hampers a child's socialization with the group he's learning with, maybe the simplest and most meaningful solution would be preventing children enrolled in language comprehension classes from having access to computers at home particularly at core language and reasoning stages in development.
laptopdev
·9 か月前·議論
Well, I know how sober a driver should be...