Last active
February 10, 2016 08:57
-
-
Save hkoba/62441ea21173c7e08767 to your computer and use it in GitHub Desktop.
I guess this is the origin of recursive glob, found in Zsh 1.0 source code, found in alt.sources archive.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* See https://groups.google.com/d/msg/alt.sources.d/uJlYosi0fjQ/O1Yct30R3mAJ | |
* And https://groups.google.com/forum/#!msg/alt.sources/tVgN49u8Ax4/7VgQlHZ4bJMJ | |
*/ | |
qath parseqath(void) | |
{ | |
comp c1; | |
qath p1; | |
if (pptr[0] == '.' && pptr[1] == '.' && pptr[2] == '.' && pptr[3] == | |
'.' && pptr[4] == '/') | |
{ | |
pptr[0] = Inpar; | |
pptr[1] = Star; | |
pptr[2] = '/'; | |
pptr[3] = Outpar; | |
pptr[4] = Pound; /* "..../" -> "( * /)#" */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment