Opened 10 years ago

Closed 10 years ago

#1272 closed defect (fixed)

IZ3288: load/'s "usage" output in one line only

Reported by: reuti Owned by:
Priority: normal Milestone:
Component: sge Version: 6.2u5
Severity: minor Keywords: clients

Description (last modified by admin)

[Imported from gridengine issuezilla]

        Issue #:      3288             Platform:     All      Reporter: reuti (reuti)
       Component:     gridengine          OS:        All
     Subcomponent:    clients          Version:      6.2u5       CC:    None defined
        Status:       NEW              Priority:     P3
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    roland (roland)
      QA Contact:     roland
       * Summary:     load/'s "usage" output in one line only
   Status whiteboard:

     Issue 3288 blocks:
   Votes for issue 3288:

   Opened: Sun Oct 24 05:56:00 -0700 2010 

The scripts "load/" use one `echo` command to display its usage. The default under Linux's `echo` is not to interpret the
escape sequences and will result in one long line only, although the intention was to have it printed out on several ones. This might be
different on other platforms though. Snippet to get the correct behavior would be to add a "-e" to allow that escape sequences will be
honored (works with the plain /bin/echo or bash's builtin):

nonewline=`$INFOTEXT "\n"`
if [ "$nonewline" == "\n" ]; then
    INFOTEXT="echo -e"

Change History (1)

comment:1 Changed 10 years ago by admin

  • Description modified (diff)
  • Resolution set to fixed
  • Severity set to minor
  • Status changed from new to closed

Fixed by [3606].

Note: See TracTickets for help on using tickets.