📄 changelo.g
字号:
Sun Sep 9 16:54:19 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* Version 1.4.
* cat.c, cp.h: Declare free returning void, not int, so it
doesn't bomb on Xenix.
Fri Sep 7 04:35:35 1990 David J. MacKenzie (djm at apple-gunkies)
* system.h, backupfile.c, savedir.c [DIRENT]: if direct is
defined (as on Ultrix 4.0), undefine it before redefining it.
Tue Sep 4 03:10:24 1990 David J. MacKenzie (djm at apple-gunkies)
* dd.c (apply_translations, translate_charset): Code moved
from parse_conversion.
(apply_translations): Convert from EBCDIC to ASCII before
converting case.
* mvdir.c (fullpath): Return a value.
* dd.c (copy): Increment count of truncated records once
per record, not once per character that overflows.
Mon Sep 3 22:23:57 1990 David J. MacKenzie (djm at coke)
* tac.c: Print error messages before calling cleanup, not after.
* dd.c (swab_array): Function removed.
(copy): Rewrite conv=swab to work when odd number of bytes
are read.
(scanargs): Die if invalid numeric value is given.
(parse_integer): Return -1 if invalid arg.
(bit_count): Faster version from Jim Meyering.
* cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
Thu Aug 30 00:17:02 1990 David J. MacKenzie (djm at apple-gunkies)
* mvdir.c (main): Make sure `from' is not a parent of any part
of `to', not just the explicitly given part.
(fullpath): New function.
Wed Aug 29 19:50:05 1990 David J. MacKenzie (djm at apple-gunkies)
* mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
* dirlib.c: Caller changed.
Tue Aug 28 18:05:24 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* touch.c (main): Don't interpret first non-option arg as a
time if `--' is given (POSIX-required kludge).
* touch.c: Add long-named options.
* Many files: Include <getopt.h> instead of "getopt.h" since
getopt.h will be in the GNU /usr/include.
* tac.c (cleanup): Return SIGTYPE, not int.
* install.c: Declare some functions.
* touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
* posixtime.y: Move year from before time to after it (but
before the seconds), for 1003.2 draft 10.
Mon Aug 27 03:25:36 1990 David J. MacKenzie (djm at apple-gunkies)
* touch.c (main): If no time is given and first arg is a valid
timespec, use it as one.
Sat Aug 25 01:36:16 1990 David J. MacKenzie (djm at apple-gunkies)
* posixtime.y: Enclose YYABORT in braces in case some yacc's
need it.
* touch.c: Remove -i option. Change some error messages.
(readname): Function removed.
Thu Aug 23 12:56:33 1990 David J. MacKenzie (djm at apple-gunkies)
* cp.c (copy): Only restore dir mode if it was changed.
Wed Aug 22 01:45:54 1990 David J. MacKenzie (djm at apple-gunkies)
* cp.c (copy): Don't only backup files when -f is given.
* ls.c: Add -X +sort=extension option. Rename
+kilobyte-file-size to +kilobytes.
* du.c: Rename -f option to -x, for POSIX. Rename
+kilobyte-file-size to +kilobytes. Add -b, +bytes option for
POSIX.
* cp-aux.c (usage): Change -o to -x.
(stpcpy): Renamed from str_cpy. Change callers in cp.c.
* cp.c: New variable, `flag_copy_as_regular'.
(main): For -R, unset `flag_copy_as_regular'.
Rename -o to -x for consistency with du.
(copy): Only unlink destination files when -f is given.
Only prompt when -i given and copying as a regular file.
Move check for previous link after other checks, reducing
duplicate code.
Create directories with mode 0700 initially, for POSIX.
Mon Aug 20 03:29:08 1990 David J. MacKenzie (djm at apple-gunkies)
* dd.c (copy): Swap input bytes instead of output bytes.
(swab_array): New function.
* dd.c (copy): If sync and noerror, zero the buffer before the
read instead of after so that any data read before an error
occurred are preserved.
On read error, print stats and seek past the bad block if
noerror.
noerror doesn't affect write errors, for POSIX.
(scanargs): Use two buffers if no buffer sizes given.
Do not block or unblock if cbs not given.
(print_stats): New function.
(quit): Call it.
Mon Aug 13 23:30:03 1990 David J. MacKenzie (djm at apple-gunkies)
* cp.c (copy): If dest. exists and is unwritable, skip the
file.
* rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
for POSIX.
* rm.c (remove_file): Only prompt if -i is given.
(main, usage): Remove -o +override-mode option, obsolete if
POSIX accepts our objection about prompting.
* mv.c (do_move): Only prompt if -i is given.
* ln.c (do_link): If dest. file exists and -i and -f not
given, skip the file.
Tue Aug 7 12:51:18 1990 David J. MacKenzie (djm at apple-gunkies)
* dd.c (main): If seek= given, don't truncate output file.
(copy): Use `read' to skip output blocks if not regular file.
Sync with NUL instead of SPC.
* cut.c (main, usage): Add -b and -n options for POSIX.
(set_fields): Don't allow SPC or TAB as number separators.
* paste.c (paste_parallel): If open of any file fails, quit
(for POSIX).
Mon Aug 6 14:43:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
* head.c, tail.c: Change `chars' to `bytes' globally.
(main, usage): Use POSIX.2 draft 10 option syntax.
* rm.c: Rename `ignore_errors' to `ignore_missing_files', and
have it only suppress messages about nonexisting files.
(main): Get dev and ino of `.' and `..'.
(rm): If file is the same as `.' or `..', return with error.
(remove_file): Remove the file rather than skipping it if
unwritable, no -i, and stdin not tty.
(remove_dir): Return an error if directory is nonwritable,
rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
* chmod.c (main): Use fixed error checking to make sure that
options aren't mixed together in the same args as mode specifiers.
Sun Aug 5 11:51:12 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
* chmod.c (main): Use umask for '-' op.
* cat.c (main): Don't delay error messages, so they appear
where expected.
(main, simple_cat, cat): Make errors in input files nonfatal.
Sat Aug 4 10:11:30 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
* mkfifo.c: Remove -p +path option, no longer specified by POSIX.
* cat.c: Remove -c option added for POSIX draft 9, since POSIX
draft 10 removed it.
* tac.c (tac_stdin): Use fstat instead of lseek to determine
whether stdin is seekable, because lseek silently fails on
some special files, like tty's.
tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
don't turn off -f for non-regular files (assume the user knows
what he's doing; it might work for fifo's and sockets).
* paste.c (main): If no files given, use stdin.
Don't let collapse_escapes write on string constant (delim default).
(paste_parallel): Don't close stdin.
* cut.c (main): Use standard input for filename of "-".
Fri Aug 3 13:38:28 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
* mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile
to respect the umask for certain operations, since the umask
is 0 anyway.
* cut.c (enlarge_line): Take an arg giving the required amount
of space. Change callers.
(main): Don't allow -t'<TAB>' without -f.
Make `delim' unsigned to fix sign extension problem in comparison.
* install.c (get_ids): Use getuid and getgid to get defaults,
instead of -1.
Fri Jul 27 14:32:40 1990 David J. MacKenzie (djm at apple-gunkies)
* backupfile.c (dirname): Always replace frontmost slash with
a null.
Thu Jul 26 00:20:35 1990 David J. MacKenzie (djm at apple-gunkies)
* cp.h: Declare umask as unsigned short.
* eaccess.c: Make uid and gid unsigned short, and group array
unsigned.
Wed Jul 25 18:38:57 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* rm.c (remove_file, remove_dir): Print verbose message right
before actually trying to remove the file, after the prompting.
* ls.c (getuser, getgroup): Make uid and gid unsigned short,
not int.
Tue Jul 24 03:39:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
print the file names just before actually attempting the
copy/link/move, to produce a list of the files that they
actually try to copy/link/move, omitting skipped files.
Remove leading spaces from +verbose output.
Mon Jul 23 16:57:44 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* cp.c (copy): Make +update operate silently, like
+one-file-system.
* ln.c: Add -F as synonym for -d, for SunOS compatibility.
Tue Jul 17 17:58:26 1990 David J. MacKenzie (djm at apple-gunkies)
* cut.c, paste.c: New files.
Sun Jul 15 23:23:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* cp.c (copy): Go back to using xstat on dest.
Wed Jul 11 12:10:33 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* cp.c (copy): Make directories with desired mode plus u+wx so
if the copy is interrupted, the dir is closer to the desired mode.
Don't backup directories.
Sun Jul 8 00:39:31 1990 David J. MacKenzie (djm at apple-gunkies)
* rm.c (main, usage): Add new option -d, +directory.
(rm): If -d given, use remove_file instead of remove_dir for
directories.
(remove_file): If directory, print "remove directory `foo'?"
for interactive instead of "remove `foo'?".
* cmp.c (main, usage): Rename -L option to -c and don't have
it imply -l.
(printc): Take an arg to specify number of chars to pad to,
for column alignment.
(cmp): Respect flag_print_chars in default output format.
Align columns for cmp -cl.
* ln.c (main): If -s given, print warning message if symlinks
are not available.
* mkfifo.c (main): If fifo's are not available, print message
and exit.
Sat Jul 7 17:23:30 1990 David J. MacKenzie (djm at apple-gunkies)
* create.c (main): Only use TMPDIR if directory is writable.
For -p, validate pathname length and (if -P) portability,
and don't complain if file already exists, and don't create it
if -n is given.
(make_new_file): Created from code in main.
(ensure_path_exists): Don't try to stat "" or "/". Take arg
indicating whether to set existing file's mode.
Return value indicating whether file needs to be created.
(validate_new_path): Take arg indicating whether to check if
directories in path exist. Don't check whether file exists.
* cmp.c: For +show-chars, have getopt return 'L' so
`flag_print_chars' gets set.
Fri Jul 6 02:02:49 1990 David J. MacKenzie (djm at apple-gunkies)
* install.c (main): Use the current user and group ID for the
default owner and group.
* cat.c, cp.c, head.c, install.c, ln.c, ls.c, mkdir.c,
mkfifo.c, mv.c, rm.c, tac.c, tail.c (main): Don't change the
option character if it's 0, as getopt now handles that internally.
* mv.c (main): New option -u, +update.
(do_move): Don't move nondirectories if -u and there is an existing
destination that has the same or newer mtime.
(usage): Document -u, +update.
* cp.c (main): New option -u, +update.
(copy): Don't copy nondirectories if -u and there is an existing
destination that has the same or newer mtime.
* cp-aux.c (usage): Document -u ,+update.
Thu Jul 5 10:04:12 1990 David J. MacKenzie (djm at apple-gunkies)
* ln.c (do_link): Don't check whether OLD exists before trying
to make link.
Tue Jul 3 01:51:55 1990 David J. MacKenzie (djm at apple-gunkies)
* ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
* chmod.c (main): Don't check whether multiple mode arguments
are given, because optind has a different value depending on
whether or not the option is the last character in the
ARGV-element.
Sat Jun 30 12:32:51 1990 David J. MacKenzie (djm at apple-gunkies)
* cp.c (copy): Use lstat on dest. file, not *xstat.
Fri Jun 29 01:04:19 1990 David J. MacKenzie (djm at apple-gunkies)
* tac.c (main): Initialize fastmap and translate fields of
regex before compiling it.
Mon Jun 25 18:07:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* ls.c (print_long_format): Truncate user and group names to 8
chars to preserve column alignment.
(length_of_file_name_and_frills): Don't assume type indicator
will be printed for unknown file types that some os's have.
* install.c: Declare getgrnam for systems where grp.h doesn't.
Sat Jun 23 00:06:35 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* Version 1.3.
* du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
according to the number of blocks reported is twice or more than
the size of the file according to the number of bytes
reported, halve the number of blocks.
Fri Jun 22 00:38:20 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* tac.c: Change +regexp to +regex for consistency with GNU find.
* cp.c (copy_dir): Initialize 'ret' to 0.
* cp.c (main), ln.c (main), mv.c (main), rm.c (main):
Make -i override -f and -o, to be conservative about
removing peoples' files.
* mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
"" or "/".
* rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
slashes at the end of an arg from main to
strip_trailing_slashes.
* install.c (strip): Print error message if the `strip'
program can't be run.
* system.h (convert_blocks): Macro moved from du.c and ls.c.
Take a second parameter indicating whether to convert to
kilobytes or 512 byte blocks.
* ls.c, du.c: Pass second parameter to convert_blocks.
Thu Jun 21 01:19:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
* ls.c (print_long_format): Use mode_string instead of
filemodestring.
* ls.c (print_long_format): Compare times as longs, not ints.
(longdiff): Macro to compare two longs efficiently if sizeof
int == sizeof long and less efficiently but correctly if they
are different sizes.
(compare_ctime, etc.): Use longdiff.
* ls.c (decode_switches): Make -k not imply -s, to allow the
summary directory size printed by -l to be in 1k blocks
without having the size of each file printed as well.
(convert_blocks): Provide for systems with a blocksize that is
other than 512 or 1024 bytes.
* du.c (main): Exit with status 0 normally.
(convert_blocks): Provide for systems with a blocksize that is
other than 512 or 1024 bytes.
Wed Jun 20 01:52:02 1990 Brian Fox (bfox at albert.ai.mit.edu)
* paste.c: Added test to check that there was an argument
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -