Re: EDITOR with tilde not expanded in git-commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Lear <rael@xxxxxxxxxx> writes:

> Fine with me: that's why I brought it up and asked the question.  How
> would you propose to fix it?  If git-commit were rewritten in C, I
> can see an argument "C does not understand tilde", but I can't
> see this as a valid argument for not supporting it.

C does not have tilde expansion or "eval", but it has "system()":

int main () {
        system("~/bin/scripts/moy-editor.sh foo.txt");
}

works as you'd expect.

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux