dsl
e60beff86b
Don't change the name of the directory we are going to 'cd' to just because
...
we decide to remove a leading "./" when deciding whether to print the name.
Stops 'cd .//tmp' ending up the same as 'cd /tmp'.
Fixes PR/30735
2005-11-26 21:44:43 +00:00
christos
f85aae5649
PR/32103: Zafer Aydogan: Fix references to obsolete fstatfs and getfsstat
2005-11-18 05:04:24 +00:00
christos
95355c05c7
- Better detect pathname overflow (from FreeBSD)
...
- Change destination normal file detection to match with FreeBSD
- Trim trailing slashes from source filenames so that cp foo/ == cp foo
2005-11-16 22:42:12 +00:00
chs
83fd12c4fb
add "uaddr" and improve text for "laddr".
2005-11-11 17:06:22 +00:00
chs
58c15fb5d1
add a keyword for the uarea address. very useful with crashdumps.
2005-11-05 19:27:24 +00:00
christos
c952ef6b81
PR/31923: Sergey Svishchev: pax-as-tar ignores -k, overwrites existing files
...
Fix from Onno van der Linden
2005-11-01 23:43:27 +00:00
jschauma
0386433d98
Somehow missed this in the last commit, where I only changed the commentary
...
to reflect the actual change (plus minor nits). So here's the actual change:
Rather than '-h' suppressing '-s' when using '-l', make it display
the blocks used in human readable form, as suggested by Alan Barrett
and Daniel Carosone.
(Missing bits spotted, as usual, by wiz@.)
2005-10-31 14:13:33 +00:00
elad
2fc1513987
The emulation for these should be "native", not "netbsd".
...
Noted by Ray Lai.
2005-10-26 21:17:23 +00:00
jschauma
ea274fd69c
Rather than '-h' suppressing '-s' when using '-l', make it display
...
the blocks used in human readable form, as suggested by Alan Barrett
and Daniel Carosone.
2005-10-26 02:24:22 +00:00
kleink
fd4c891ff8
Remove the "" -> "." target conversion kludge.
2005-10-24 12:59:07 +00:00
jschauma
3478ebe108
document that -h makes -l suppress -s.
...
(Ie 'ls -lhs' == 'ls -lh')
2005-10-23 20:52:47 +00:00
elad
c9981d258c
PR/27140: "sleep time" doesn't error out.
...
Apply fix from Dheeraj Reddy.
2005-10-17 10:11:46 +00:00
christos
509c72ef94
- Don't output 'src -> dst' when -v and there was an error.
...
- Mark usage as noreturn, and remove extraneous exit.
- Pass lint.
Reported by Liam Foy.
2005-10-15 18:22:18 +00:00
jschauma
ff54312f75
Honor the COLUMNS variable even when producing output not to a terminal,
...
as long as a specific format (that could use COLUMNS) was requested.
This makes
env COLUMNS=50 ls -C > file
not surprise the user who clearly wanted some specific output in the file.
2005-10-14 16:02:26 +00:00
christos
8d6ffce2ad
PR/31548: Alexander Rigbo: $PWD not set when shell starts up, before pwd
...
or cd get executed.
2005-10-10 21:14:42 +00:00
wiz
803ccc7cb0
Bump date for previous.
2005-10-10 20:46:17 +00:00
jschauma
98615dcf47
Document that '-g' overrides -1, -C, -m, and -x, but is _always_
...
overridden by '-l', even if '-g' was specified last.
2005-10-10 20:30:34 +00:00
christos
c05266af8a
fix setmode error handling.
2005-10-01 20:23:54 +00:00
christos
16547af71a
Fix setmode error handling.
2005-10-01 20:22:29 +00:00
christos
037f0a7b03
Now that setmode() is fixed, handle errors with err instead errx.
2005-10-01 20:09:18 +00:00
tv
964f98e703
Make slightly more portable without extra conditionals needed:
...
- Use getpgrp() rather than getpgid(0).
(getpgrp() is already used elsewhere in this same file.)
- Use waitpid(-1, a, b) rather than wait3(a, b, NULL).
2005-09-30 18:57:55 +00:00
dsl
469d38dbae
Don't leave arcn->org_name pointing to ftent->fts_path, if we being cpio
...
then ftent is freed just below. Take a copy of the name and point org_name
at the copy.
Should fix PR/30627 (the fix in the PR will break pax and tar!)
2005-09-24 17:05:21 +00:00
christos
88ee54d8c2
Check for another race reported by chuq.
2005-09-18 12:15:41 +00:00
christos
b39d90de0c
mkdir(2) can return EISDIR for /
2005-09-17 06:05:04 +00:00
christos
5b36787563
spelling fixes from Joerg Sonnenberger
2005-09-16 17:05:14 +00:00
christos
b60b306ef2
Another missing mkdir() race pointed out by chuq. Factor out the mkdir code.
2005-09-16 16:48:18 +00:00
christos
0743a9e845
use stat and not lstat to detect if we have a directory. refactor the mkpath()
...
code.
2005-09-13 20:09:55 +00:00
christos
929821126f
when creating directories, check if the failure occured because someone
...
else created the directory before we did to avoid races. From chuq.
2005-09-13 15:50:17 +00:00
wiz
49c862f011
Use better section header. Sort sections. From YOMURA Masanori in private mail.
2005-09-11 23:21:17 +00:00
wiz
553e3c8477
Use better section header. From YOMURA Masanori in private mail.
2005-09-11 23:13:03 +00:00
christos
a74ea5fcd7
Process window size changes after xread(). [change window size]
...
echo $COLUMS $LINES; will now print the new sizes immediately, instead
of after the second echo. From otto@OpenBSD
2005-09-11 22:23:42 +00:00
christos
57c8db64ce
The following should print \"; from OpenBSD
...
$ cat << EOF
\"
EOF
2005-09-11 22:16:00 +00:00
wiz
2ea3362a10
In mdoc, use .Pp for new paragraphs, not .br.
2005-09-10 22:09:43 +00:00
wiz
d8b6049e03
Sort options. Simplify macro usage. Use standard EXIT STATUS section.
2005-09-10 21:51:57 +00:00
elad
d8a0e22d8a
Adjust comment. Noted by Rui Paulo.
2005-09-07 19:15:49 +00:00
elad
f777d75b5c
Catch up with 64 bit inode changes.
2005-09-07 19:04:57 +00:00
elad
e6a2d9e984
Simplify man-page a bit.
...
Patch from Patrick Welche.
2005-09-03 11:44:45 +00:00
elad
3752840791
Add a new keyword, ``topdir'', that grants access only if the file is
...
in a hierarchy below the specified path.
2005-08-24 19:09:03 +00:00
dsl
8c772bc707
Don't apply CDPATH if the the first component of the target is "." or "..".
...
Fixes PR/30973 and applies the principle of least surprise.
Update documentation to match (including date).
(matches behaviour of pdksh - if not it's documentation)
2005-08-20 21:07:42 +00:00
elad
76ed05e8b1
Add and document -N: When used with -p, it will not copy the file flags.
...
PR 13645.
2005-08-15 17:13:35 +00:00
elad
2d28a8933f
Document -L correctly. PR #30430 .
2005-08-13 15:59:28 +00:00
elad
3df38a6c89
Make inpath work like strstr again. :)
2005-08-10 21:53:01 +00:00
elad
9d164b22bc
Add comments.
2005-08-10 21:33:36 +00:00
elad
e4088913b5
Separate constructing the path to the policy away from systrace_addpolicy() and
...
into systrace_getpolicyfilename().
2005-08-10 18:19:21 +00:00
peter
fa141339e0
More minor cleanup:
...
- remove unnecessary prototype for main()
- use symbolic exit code
- KNF & wrap a long line
2005-07-22 14:27:08 +00:00
hubertf
15bc25dc45
Minor code cleanup:
...
* remove unneeded cast
* use err() instead of perror() + exit()
* use symbolic exit code
Patch contributed by Liam J. Foy <liamfoy@sepulcrum.org> in private mail.
2005-07-22 11:06:24 +00:00
wiz
980a2652ee
Aspell, fix an Xref, drop trailing whitespace.
2005-07-15 22:33:48 +00:00
christos
0df4f0ca31
Only do certain actions when we are trully interactive, not just when we
...
are connected to a tty:
1. enable editor
2. print directory on directory change.
3. print job messages
2005-07-15 17:49:43 +00:00
christos
b0d51313b4
If we have a script and we are interactive, set interactive to 2. This
...
allows us to run scripts with -i without printing the prompt like the
other shells do.
2005-07-15 17:46:54 +00:00
christos
e996b4625d
Allow trap to work on ignored signals when the shell is interactive.
2005-07-15 17:23:48 +00:00