[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issues with cdrsin and USB devices on RHEL5



On Mon, Jul 14, 2008 at 10:45:25PM +0200, Giulio Orsero wrote:
> ============ /lib/udev/check-cdrom.sh
> #!/bin/bash
...
>         pos=$[$pos+1]

Dear gods.  Didn't anyone tell them that $[ is deprecated?

pos=$(($pos+1))

... is the preferred syntax, and is POSIX/ksh compatible.


Reply to: