Changeset 138 for trunk/tssh
- Timestamp:
- Dec 28, 2017, 4:09:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tssh/tssh
r137 r138 124 124 do 125 125 local mode=${default_mode} 126 local -rlast_char="${host: -1}"126 local last_char="${host: -1}" 127 127 if [ "${last_char}" == "-" -o "${last_char}" == "+" ] 128 128 then … … 132 132 133 133 # short host without login part if any 134 local -rjusthost=${host#*@}134 local justhost=${host#*@} 135 135 136 136 cluster=$(grep "^${justhost}\b" ${HOME}/.csshrc | cut -f 2 -d '=') … … 196 196 fi 197 197 198 local -rsession=$(shuf -n 1 /usr/share/dict/words | tr -cd "[:alpha:]")198 session=$(shuf -n 1 /usr/share/dict/words | tr -cd "[:alpha:]") 199 199 200 200 IFS=$'\n' host=($(cat "/tmp/${base_path}/${f}"))
Note: See TracChangeset
for help on using the changeset viewer.