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

IFS is confusing... #43

Open
sumbach opened this issue Jan 31, 2016 · 2 comments
Open

IFS is confusing... #43

sumbach opened this issue Jan 31, 2016 · 2 comments
Labels

Comments

@sumbach
Copy link
Collaborator

sumbach commented Jan 31, 2016

I've always struggled with understanding the particulars of IFS and word splitting, so I'd like to try to give beginners as much help with this as possible.

  1. I think the default value of IFS is space, tab, and newline.
  2. It might be helpful to link to Word splitting in the Bash manual in case readers need the details.
@ghost
Copy link

ghost commented Feb 2, 2016

Do you still find it confusing?

@sumbach
Copy link
Collaborator Author

sumbach commented Feb 2, 2016

@bucaran Yes, definitely 😖

The idea of IFS and word-splitting isn't too complicated or difficult to understand, but the particulars are very tricky.

I opened this issue to try to prompt a conversation about how IFS to explain/teach IFS. My personal inclination would be to recommend IFS="" then point people to particular solutions for common problems:

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

No branches or pull requests

2 participants