FS#29145 - Bash typo in /etc/rc.d/functions

Attached to Project: Community Packages
Opened by Nicolas Michel (sylock) - Wednesday, 28 March 2012, 09:43 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 28 March 2012, 13:47 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
At line 573 :
The line looks like this:
done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /)

And have to be fixed like this:
done < $(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /)

Additional info:
* package version(s)
/etc/rc.d/functions is owned by initscripts 2012.03.2-1

* config and/or log files etc.


Steps to reproduce:
At each boot process we get a bash interpreter error saying that '<' is unexpected at line 573
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 28 March 2012, 13:47 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#28331 
Comment by Dave Reisner (falconindy) - Wednesday, 28 March 2012, 13:47 GMT
Please learn bash before reporting such "bugs". You have a script in /etc/rc.d that is declared with a #!/bin/sh shebang. /etc/rc.d/functions is strictly a bash script and cannot be sourced by POSIX sh.

Loading...