13. Loose Ends

We’ve put commands and features into this chapter that for one reason or another did not logically fit into earlier chapters. There’s no particular rationale for their order of presentation.

The eval Command

This section describes another of the more unusual commands in the shell: eval. Its format is as follows:

eval command-line

where command-line is a normal command line that you would type at the terminal. When you put eval in front of it, however, the net effect is that the shell scans the command line twice before executing it.1 For the simple case, this really has no effect:

1Actually, what ...

Get Unix Shell Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.