An interesting Bourne shell limitationPresented in illustrated form, on at least Solaris 8, FreeBSD, and OpenBSD: $ exec 9>/dev/null $ exec 10>/dev/null exec: 10: not found (And the shell exits.) The genuine Bourne shell only allows redirection to (or from)
single-digit file descriptors; if you give multiple digits, it
instead gets parsed as ' (The limitation has been faithfully copied by at least some Bourne shell reimplementations and was retained in ksh, but bash has dispensed with it, so you won't see this behavior on (most) Linux machines.) This limitation is implicitly in the V7 sh manpage, which says about redirection:
In the grand tradition of reading Unix manpages, using the singular 'digit' means that multiple ones aren't allowed. This wording was carried on into the Solaris (One might argue that the FreeBSD usage of ' |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |