X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=0716164a6a8c7868cc653fb63078d98d21f8474e;hb=eb5f508e7054bda6e240f2738290f380890d0a43;hp=9c2a04691536364866baad638ced2a2b116227b9;hpb=1df56b48cd8e1884f2d3cf98a1e98e379c5a843d;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 9c2a046..0716164 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -198,6 +198,10 @@ isopenbsd(){ [[ $GRML_OSTYPE == "OpenBSD" ]] } +issolaris(){ + [[ $GRML_OSTYPE == "SunOS" ]] +} + #f1# are we running within an utf environment? isutfenv() { case "$LANG $CHARSET $LANGUAGE" in @@ -768,7 +772,7 @@ grmlcomp() { [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() [[ -r /etc/hosts ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$( 0 )); then while (( $# > 0 )); do - if islinux || isfreebsd; then + if islinux || isfreebsd; then cp $verbose -a "${1%/}" "${1%/}_$current_date" - else; + else cp $verbose -pR "${1%/}" "${1%/}_$current_date" fi (( result += $? ))