Created
April 26, 2013 22:27
-
-
Save jan-matejka/5470868 to your computer and use it in GitHub Desktop.
getenv wat
This file contains hidden or 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
| yac@rainbowdash % cat main.c | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main(void) { | |
| printf("PORTDIR=%s\n", getenv("PORTDIR")); | |
| return 0; | |
| } | |
| -------------------------------------------------------------------------------- | |
| ~/wat | |
| yac@rainbowdash % gcc main.c | |
| -------------------------------------------------------------------------------- | |
| ~/wat | |
| yac@rainbowdash % ./a.out | |
| PORTDIR=(null) | |
| -------------------------------------------------------------------------------- | |
| ~/wat | |
| yac@rainbowdash % echo $PORTDIR | |
| /var/lib/cportage/portage |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export export export
Duh