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

Bug#366789: bashism in tex-common.config: arith: syntax error "usercount++"



Package: tex-common
Version: 0.22

tex-common.config failed by
/tmp/tex-common.config.82573: 163: arith: syntax error: "usercount++"

at line 121, there are
      : $((usercount++))
but it is bashism.

% bash
$ usercount=0
$ : $((usercount++))
$ exit
% dash
$ usercount=0
$ : $((usercount++))
dash: arith: syntax error: "usercount++"
$

I think it should be written as
	usercount=$(($usercount+1))

Regards,
Fumitoshi UKAI



Reply to: