edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] we shouldn't be letting glob() do our tilde expansion
@ 2015-05-14 15:45 chris
  2015-05-14 19:15 ` Karl Dahlke
  2015-05-15 15:42 ` Karl Dahlke
  0 siblings, 2 replies; 4+ messages in thread
From: chris @ 2015-05-14 15:45 UTC (permalink / raw)
  To: edbrowse-dev

Two reasons, one can probably be surmounted, the other probably cannot.

1. musl, the libc implementation that I use for building the static
executables, lacks GLOB_TILDE_CHECK (and GLOB_TILDE for that matter).
I don't think they're in POSIX.
2. The insurmountable one is that it creates a big inconsistency in the
behavior of commands with respect to filename expansion.  Look at the
following typescript to see why.

Script started on Thu 14 May 2015 08:31:42 AM PDT
[chris@mushroom ~]$ edbrowse
do not send referrer
edbrowse ready
$a
hello
.
w ~/foo
cannot create ~/foo
w /home/chris/foo
6
1c
goodbye
.
w ~/foo
8
q
[chris@mushroom ~]$ exit
exit

Script done on Thu 14 May 2015 08:32:26 AM PDT

I'd be happy to submit a patch for review to rework envFile, so that it
does its own ~ and ~username expansion.

Sorry I didn't catch this earlier.

-- Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-16  7:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14 15:45 [Edbrowse-dev] we shouldn't be letting glob() do our tilde expansion chris
2015-05-14 19:15 ` Karl Dahlke
2015-05-15 15:42 ` Karl Dahlke
2015-05-16  7:54   ` chris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).