[Bug 5540] New: Parse error in ash when redirecting value to sysfs

bugzilla at busybox.net bugzilla at busybox.net
Wed Sep 19 07:25:10 UTC 2012


           Summary: Parse error in ash when redirecting value to sysfs
           Product: Busybox
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: henri.bragge at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

When echoing a value and redirecting it to a file under sysfs, ash just prints
an empty line but does not store the value. This only happens when ">"
character is typed right after the command.

For example, this works:
# echo 250 > /sys/class/backlight/pwm-backlight.0/brightness
# cat /sys/class/backlight/pwm-backlight.0/brightness

But this does not:
# echo 128> /sys/class/backlight/pwm-backlight.0/brightness

# cat /sys/class/backlight/pwm-backlight.0/brightness

Redirecting in similar way to a normal file works:
# echo hello> /tmp/world
# cat /tmp/world

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