Qi Xiao

Results 250 comments of Qi Xiao

> It seems to me it should be possible to produce friendlier output (e.g., `$edit:close-mode~`) even if the idea in this issue is not implemented. And even if it becomes...

> @xiaq: I see your point but the current output is the string`''` which also is "not useful for the caller of `f`" AFAICT. Also, to be consistent with the...

I was too lazy to implement introspection operations on `$E:` (it doesn't even exist), but someone (or I, eventually) should do that, and remove the `*-env` builtin functions (after deprecation)....

There needs to be a comprehensive design of how to wrap the `time.Duration` and `time.Time` types. I haven't thought much about it yet but I can review a design if...

If you are cloning from a hosted git service (GitHub, GitLab), they all supports cloning over HTTPS so this feature is not needed. If you are cloning from a personal...

> I agree with the sentiment but believe making global modifiers a suffix of the pattern is preferable to making them a prefix. I think `**/x*[type:dir]` reads better than `[type:dir]**/x*`....

Thanks, @zzamboni. The issue is still a bug though.

The cause is that Elvish always closes the LHS of redirects: https://github.com/elves/elvish/blob/f9ef4e62364ab0d662982012a2c592649cd3124d/eval/compile_op.go#L511 So Elvish actually closes fd 2 when it sees `2>&1`, and closes fd 1 when it sees `1>&3`....

@zakukai I like the idea of using braced list to swap FDs. The other part of your proposal - making RHS refer to the original FD table - sounds problematic,...

> I think that is generally the nature of this endeavour - creating a shell that is in some ways very similar to a POSIX shell but in some ways...