FS#27203 - [initscripts] Syntax error in /etc/rc.d/functions

Attached to Project: Arch Linux
Opened by Lee Starnes (lstarnes) - Monday, 21 November 2011, 05:47 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 21 November 2011, 16:50 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Whenever rc.d is run, bash outputs the following errors:
/etc/rc.d/functions: line 497: syntax error near unexpected token `<'
/etc/rc.d/functions: line 497: ` done < <(findmnt -runRo TARGET,FSTYPE,OPTIONS / | tac)'

Additional info:
* package version(s) initscripts 2011.11.3-1
* config and/or log files etc.


Steps to reproduce:
start, stop, or restart any service with rc.d
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Monday, 21 November 2011, 16:50 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#27135   FS#27098   FS#27072 
Comment by Jan de Groot (JGC) - Monday, 21 November 2011, 10:34 GMT
Works fine here. Is there a chance you run rc.d with a different shell than bash (the shebang points to /bin/bash, but if you run rc.d as "sh rc.d", then it will probably fail).
Comment by Sebastián Peyrott (Pse) - Monday, 21 November 2011, 14:03 GMT
I had this problem too. As explained in bug  FS#27072 , it was caused by scripts in rc.d sourcing /etc/rc.d/functions without using bash. In my case it was caused by scripts installed by trac and libvirt.

Loading...