=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/cmdbuf.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/less/cmdbuf.c 2011/09/16 18:12:09 1.5 --- src/usr.bin/less/cmdbuf.c 2011/11/16 11:30:02 1.6 *************** *** 1352,1358 **** return (save(name)); } ! /* Otherwise, file is in $HOME. */ home = lgetenv("HOME"); if (home == NULL || *home == '\0') { --- 1352,1360 ---- return (save(name)); } ! /* Otherwise, file is in $HOME if enabled. */ ! if (strcmp (LESSHISTFILE, "-") == 0) ! return (NULL); home = lgetenv("HOME"); if (home == NULL || *home == '\0') {