From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 15 Nov 2004 21:12:12 +0000 Subject: Re: udev: rules ignore whitespace but not case Message-Id: <20041115211211.GA31197@kroah.com> List-Id: References: <20041115204046.GA5306@localhost> In-Reply-To: <20041115204046.GA5306@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Nov 15, 2004 at 03:40:46PM -0500, Eric C. Cooper wrote: > I use a rule like this > BUS="scsi", SYSFS{model}="iPod", KERNEL="sd[a-z]2", SYMLINK="ipod" > and it works even though the model field is actually > "iPod " > > But a rule like this > BUS="scsi", SYSFS{vendor}="KINGSTON", KERNEL="sd[a-z]1", SYMLINK="flash" > fails with my flash disk because the vendor field is actually "Kingston". > > I think that if the pattern matching is going to trim whitespace, it > should also ignore case. That would be more consistent and more > resilient to errors. No, we want to only trim whitespace, as that's the most common issue for people. Case sensitivity is still important to keep. thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel