Yay... Another bug in setup.sh - setup.sh: 17: read: arg count #26

Closed
opened 2015-09-01 18:14:38 -04:00 by ghost · 2 comments
ghost commented 2015-09-01 18:14:38 -04:00 (Migrated from github.com)

Looks like read needs an argument. I changed it to read _ and that fixed it.

Looks like read needs an argument. I changed it to `read _` and that fixed it.
jomo commented 2015-09-01 18:48:17 -04:00 (Migrated from github.com)

This should be a PR, not an issue.


However I can't confirm your issue. The read builtin does not need an argument:

If no NAMEs are supplied, the line read is stored in the REPLY variable.

Looks like it has been like that for a long time. Are you sure you're using bash?


If you're on ubuntu it's possible that you have symlinked /bin/bash to /bin/dash, which is a bad idea, as you can see.
The script explicitly states that it is to be executed with /usr/bin/env bash. If your system'sbash` is actually a bash incompatible bash-replacement, you need to fix your system :)

This should be a PR, not an issue. --- However I can't confirm your issue. The `read` builtin does not need an argument: > If no NAMEs are supplied, the line read is stored in the REPLY variable. Looks like it has been like that for [a long time](http://git.savannah.gnu.org/cgit/bash.git/commit/builtins/read.def?id=726f63884db0132f01745f1fb4465e6621088ccf). Are you sure you're using bash? --- If you're on ubuntu it's possible that you have symlinked `/bin/bash` to `/bin/dash`, which is a bad idea, as you can see. The script explicitly states that it is to be executed with `/usr/bin/env bash. If your system's`bash` is actually a bash incompatible bash-replacement, you need to fix your system :)
ghost commented 2015-09-01 18:52:15 -04:00 (Migrated from github.com)

Ah interesting... I haven't symlinked anything and just reinstalled on an encrypted volume yesterday. Of course when updating I got some notices that my system installation was broken, so i'll check it out.

Ah interesting... I haven't symlinked anything and just reinstalled on an encrypted volume yesterday. Of course when updating I got some notices that my system installation was broken, so i'll check it out.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Redstoner/redstoner-utils#26