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

Bug#226836: libc6: syntax error in devpts.sh init script



On Thu, Jan 08, 2004 at 06:56:50PM +0100, Kilian CAVALOTTI wrote:
> Package: libc6
> Version: 2.3.2.ds1-10
> Severity: normal
> 
> Line 17 from /etc/init.d/devpts.sh should be: 
> if [[ $devfs_mounted = 0 && $devpts_avail != 0 ]]
> instead of:
> if [ $devfs_mounted = 0 && $devpts_avail != 0 ]

It would be better to use a portable shell construct, such as:

  if [ "$devfs_mounted" = 0 ] && [ "$devpts_avail" != 0 ]

([[ ... ]] is bash-specific.)

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: