Skip to main content
added 13 characters in body
Source Link

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so nothe shell won't perform any field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS (if not, what simple, two lines, test would you suggest)?

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS (if not, what simple, two lines, test would you suggest)?

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so the shell won't perform any field splitting.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS (if not, what simple, two lines, test would you suggest)?

added 57 characters in body
Source Link

Testing default IFS testing with "$*"against null IFS

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS (if not, what simple, two lines, test would you suggest)?

IFS testing with "$*"

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS?

Testing default IFS against null IFS

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS (if not, what simple, two lines, test would you suggest)?

deleted 141 characters in body
Source Link

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur at all and that this is different than unset IFS which specially has some fallback behavior as if newline, tab and line break are utilized.

While reading about IFS, I recall reading about:

echo "$*"

IFS= echo "$*"

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got an empty linelines.

What does the above test command mean and is it really a good case to learn about IFS?

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur at all and that this is different than unset IFS which specially has some fallback behavior as if newline, tab and line break are utilized.

While reading about IFS, I recall reading about:

echo "$*"

IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know distribution) I got an empty line.

What does the above test command mean?

I understand that in Bourne shell and derivates, IFS= sets IFS to null, so no field splitting would occur.

I recall reading about:

  • echo "$*"
  • IFS= echo "$*"

When I ran both commands, once in CentOS and once in WSL (uname -o = GNU/Linux only so I don't know the distribution) I only got empty lines.

What does the above test command mean and is it really a good case to learn about IFS?

Source Link
Loading