Skip to content

Commit

Permalink
post: NEATROFF_F environment variable
Browse files Browse the repository at this point in the history
It specifies the default value of -F option.
  • Loading branch information
aligrudi committed Jun 17, 2023
1 parent f2030e3 commit d95ce8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions post.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ int main(int argc, char *argv[])
{
int i;
int landscape = 0;
if (getenv("NEATROFF_F") != NULL)
snprintf(postdir, sizeof(postdir), "%s", getenv("NEATROFF_F"));
for (i = 1; i < argc; i++) {
if (argv[i][0] == '-' && argv[i][1] == 'F') {
strcpy(postdir, argv[i][2] ? argv[i] + 2 : argv[++i]);
Expand Down

0 comments on commit d95ce8a

Please sign in to comment.