On Tue, Sep 12, 2006 at 09:51:40AM +0200, maximilian attems wrote:
On Mon, 11 Sep 2006, David Härdeman wrote:
elif [ "$opt" != "${opt#[[:digit:]]*x[[:digit:]]}"; then
# Sadly no regexps are available
# but presumably a modevalue without the "mode=" prefix
echo -n "mode=$opt "
you can use printf as regex replacement,
it's both in dash as in ash, see load_modules()
from scripts/functions
Ehm...I might be daft, but how would I use printf to check if a string
matches the regexp "^[0-9]+x[0-9]+"?
for i in 0 1 2 3 4 5 6 7 8; do
mknod /dev/tty$i c 4 $i
done
The above line should be [ -c /dev/tty$i ] || mknod /dev/tty$i c 4 $i
i'll test it out for the 0.80 release, seems very valuable indeed.
Cool, let me know how it goes
Regards,
David
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]