I found this: *"...POSIX says that a non-interactive shell must not generate pathnames for a redirection; an interactive shell may do so, provided there is exactly one match.." *
So although: echo BB-SPIDEV0 > /sys/devices/bone_capemgr.*/slots might work when you are doing it manually, you need to do something like this: #!/bin/sh -e > slots=$(ls /sys/devices/bone_capemgr.*/slots) > echo BB-SPIDEV0 > $slots > echo BB-SPIDEV1 > $slots > exit > to make it run in a plain sh script -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
