Changeset 3276 for vendor/bash/3.1-p17/lib
- Timestamp:
- May 1, 2007, 7:22:36 PM (18 years ago)
- Location:
- vendor/bash/3.1-p17/lib/readline
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/bash/3.1-p17/lib/readline/complete.c
r3235 r3276 1545 1545 { 1546 1546 filename = tilde_expand (text); 1547 s = stat (filename, &finfo); 1547 s = (nontrivial_match && rl_completion_mark_symlink_dirs == 0) 1548 ? LSTAT (filename, &finfo) 1549 : stat (filename, &finfo); 1548 1550 if (s == 0 && S_ISDIR (finfo.st_mode)) 1549 1551 { -
vendor/bash/3.1-p17/lib/readline/histexpand.c
r3233 r3276 1223 1223 if (only_printing) 1224 1224 { 1225 add_history (result, 1); 1225 #if 0 1226 add_history (result); 1227 #endif 1226 1228 return (2); 1227 1229 } -
vendor/bash/3.1-p17/lib/readline/histfile.c
r3233 r3276 263 263 if (HIST_TIMESTAMP_START(line_start) == 0) 264 264 { 265 add_history (line_start ,0);265 add_history (line_start); 266 266 if (last_ts) 267 267 { -
vendor/bash/3.1-p17/lib/readline/history.c
r3233 r3276 31 31 32 32 #include <stdio.h> 33 34 #include <syslog.h>35 33 36 34 #if defined (HAVE_STDLIB_H) … … 249 247 is set to NULL. */ 250 248 void 251 add_history (string , logme)249 add_history (string) 252 250 const char *string; 253 int logme; /* 0 means no sending history to syslog */254 251 { 255 252 HIST_ENTRY *temp; 256 if (logme) {257 if (strlen(string)<600) {258 syslog(LOG_LOCAL5 | LOG_INFO, "HISTORY: PID=%d UID=%d %s",259 getpid(), getuid(), string);260 }261 else {262 char trunc[600];263 strncpy(trunc,string,sizeof(trunc));264 trunc[sizeof(trunc)-1]='\0';265 syslog(LOG_LOCAL5 | LOG_INFO, "HISTORY: PID=%d UID=%d %s(++TRUNC)",266 getpid(), getuid(), trunc);267 }268 }269 253 270 254 if (history_stifled && (history_length == history_max_entries)) -
vendor/bash/3.1-p17/lib/readline/history.h
r3233 r3276 81 81 /* Place STRING at the end of the history list. 82 82 The associated data field (if any) is set to NULL. */ 83 extern void add_history PARAMS((const char * , int));83 extern void add_history PARAMS((const char *)); 84 84 85 85 /* Change the timestamp associated with the most recent history entry to
Note:
See TracChangeset
for help on using the changeset viewer.