diff options
author | yar <yar@FreeBSD.org> | 2003-02-04 17:50:38 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2003-02-04 17:50:38 +0000 |
commit | 92b68c76468d0d53c9e24c28d2e8095beb711a75 (patch) | |
tree | 80264f18f20defbb32908ad168f043399925b4a9 /lib/libc/stdio/getwc.c | |
parent | 21f12932c485a7565c0a491c72f751f6236581cb (diff) | |
download | FreeBSD-src-92b68c76468d0d53c9e24c28d2e8095beb711a75.zip FreeBSD-src-92b68c76468d0d53c9e24c28d2e8095beb711a75.tar.gz |
Let tilde expansion be done even if a file/directory doesn't exist yet.
This makes such natural commands as "MKD ~user/newdir" or "STOR ~/newfile"
do what they are supposed to instead of failing miserably with the
"File not found" error.
This involves a bit of code reorganization. Namely, the code doing
glob(3) expansion has been separated to a function; a new function
has been introduced to do tilde expansion; the latter function is
invoked on a pathname before the former one. Thus behaviour mimicing
that of the Bourne shell has been achieved.
Diffstat (limited to 'lib/libc/stdio/getwc.c')
0 files changed, 0 insertions, 0 deletions