Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash: eval: line 32: syntax error near unexpected token `newline' #14

Open
JvD007 opened this issue Jul 13, 2020 · 1 comment
Open

bash: eval: line 32: syntax error near unexpected token `newline' #14

JvD007 opened this issue Jul 13, 2020 · 1 comment

Comments

@JvD007
Copy link

JvD007 commented Jul 13, 2020

When you enter the login bash of Gentoo prefix under ubuntu, you see the following error message:

bash: eval: line 32: syntax error near unexpected token newline' bash: eval: line 32: Usage: lesspipe '

Checked because ubuntu .bashrc contains the following command by default:

make less more friendly for non-text input files, see lesspipe(1)

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

The ubuntu under lesspipe parameterless runtime outputs environment variable configurations such as LESSOPEN, while the lesspipe under gentoo does not support parameter-free runs, so the output is misstated. The solution is to modify the above command to explicitly call the lesspipe command under ubuntu using the full path, as follows (or comment this line directly out of the line?). )。

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh /usr/bin/lesspipe)"

Gentoo Prefix issue?

@amadio
Copy link

amadio commented Apr 7, 2022

In Gentoo, eval $(lesspipe) is not necessary. The lesspipe utility is not the same in Gentoo and Ubuntu. Just export LESSCOLOR=always on Gentoo and it should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants