[Bug 6176] New: hush: no readonly for globals

bugzilla at busybox.net bugzilla at busybox.net
Mon Apr 8 09:19:01 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=6176

           Summary: hush: no readonly for globals
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: Denis.Ryndine at laerdal.no
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


BusyBox v1.20.2 (2013-04-04 13:18:53 UTC) hush - the humble shell


The frist two below won't 'compile', the third one with local readonly is ok.

readonly MYSLEEP=1
mysleep() {
  sleep $MYSLEEP
}
mysleep

mysleep() {
  readonly MYSLEEP=1
  sleep $MYSLEEP
}
mysleep

#won't mind local
mysleep() {
  local readonly MYSLEEP=1
  sleep $MYSLEEP
}
mysleep

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list