This is more consistent with how bash, zsh and ksh93 behave and
makes $(< filename) more of a drop-in replacment for $(cat filename).
OK kn@ florian@
-/* $OpenBSD: eval.c,v 1.66 2020/09/13 15:39:09 tb Exp $ */
+/* $OpenBSD: eval.c,v 1.67 2023/05/24 14:20:33 millert Exp $ */
/*
* Expansion - quoting, separation, substitution, globbing
#include <ctype.h>
#include <dirent.h>
+#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
SHF_MAPHI|SHF_CLEXEC);
if (shf == NULL)
warningf(!Flag(FTALKING),
- "%s: cannot open $(<) input", name);
+ "%s: %s", name, strerror(errno));
xp->split = 0; /* no waitlast() */
} else {
int ofd1, pv[2];