Skip to content
Snippets Groups Projects

E3-464: Change iocsh PS1 to show IOCNAME

Merged E3-464: Change iocsh PS1 to show IOCNAME
1 unresolved thread
Merged Lucas Magalhães requested to merge iocsh-iocname into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
158 158 function iocsh_ps1() {
159 159 local iocsh_ps1=""
160 160 local pid="$1"
161 # Keep only short hostname (without domain)
162 local host=${HOSTNAME%%.*}
163 161
164 iocsh_ps1+=${host:0:15}
165 iocsh_ps1+="-"
166 iocsh_ps1+=$pid
162 # If IOCNAME is not set use pid instead
163 if [ -z "${IOCNAME}" ]; then
  • Anders Lindh Olsson approved this merge request

    approved this merge request

  • mentioned in commit c00950e0

  • Please register or sign in to reply
    Loading