Changeset 1192


Ignore:
Timestamp:
Jan 5, 2009, 12:39:11 PM (10 years ago)
Author:
jrollins
Message:

fix printf call, and replace 'echo -n' calls with printf

Location:
trunk/cereal/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cereal/src/cereal

    r1190 r1192  
    112112        echo "############################################################"
    113113        echo "### cereal log: $SESSION"
    114         echo -n "### "
     114        printf "### "
    115115        list "$SESSION"
    116116        echo "### log file: $LOG"
  • trunk/cereal/src/cereal-admin

    r1190 r1192  
    240240        elif is_running "$SESSION" ; then
    241241            echo "Session '$SESSION' is currently running."
    242             echo -n "Really stop and destroy session? [Y|n]: "
     242            printf "Really stop and destroy session? [Y|n]: "
    243243            read OK; OK=${OK:=Y}
    244244            if [ "$OK" = 'y' -o "$OK" = 'Y' ] ; then
     
    256256            fi
    257257        else
    258             echo -n "Really destroy session '$SESSION'? [Y|n]: "
     258            printf "Really destroy session '$SESSION'? [Y|n]: "
    259259            read OK; OK=${OK:=Y}
    260260            if [ "$OK" = 'y' -o "$OK" = 'Y' ] ; then
  • trunk/cereal/src/common

    r1190 r1192  
    145145#log_write SESSION STATEMENT
    146146log_write() {
    147     printf "\ncereal: $2\n" >> "$SESSIONDIR/$1/socket"
     147    printf "\ncereal: %s\n" "$2" >> "$SESSIONDIR/$1/socket"
    148148}
    149149
Note: See TracChangeset for help on using the changeset viewer.