Syntax-Error: bash_completion.d/enosys

Hey guys!

Thank you, for this wonderful OS! At first all the cloud-stuff let me feel fear, but after a while, it turned into huge respect for you all!

When i started the (default) terminal this morning in bluefin, i got this error message:

bash: /home/linuxbrew/.linuxbrew/etc/bash_completion.d/enosys: Zeile 19: Syntaxfehler beim unerwarteten Symbol »)«
bash: /home/linuxbrew/.linuxbrew/etc/bash_completion.d/enosys: Zeile 19: `		'-d'|'--dump')'

there’s a small syntax error in the enosys file:

_waitpid_module()
{
	local cur prev OPTS
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	case $prev in
		'-s'|'--syscall')
			return 0
			;;
		'-i'|'--ioctl')
			return 0
			;;
		'-l'|'--list')

the opening parenthesis are not there. Is it okay for you guys, if i open a pull request on github, or is this something, you can do in between your non existent time?

Greetings and big thx!

1 Like

It’s a case switch so there won’t be an opening parans.

What is missing is after thr -m option is the double ; closing that case. You can add the fix yourself.

This has been reported to the upstream project and should hopefully propagate to brew quickly.

4 Likes

Thank you, for your fast and great help!

Thanks, that help me too !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.