| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.
Submitted by: fanf
|
|
|
|
| |
options.
|
|
|
|
| |
Suggested by: fanf
|
|
|
|
| |
Pointed out by: fanf
|
|
|
|
| |
don't support system that implement getcwd(3) with a pipe to /bin/pwd.
|
| |
|
|
|
|
|
|
| |
to fail when the logical current directory no longer exists. Allow changes
to absolute paths when logical cwd is invalid, fall back to physical cd
if logical cd fails.
|
|
|
|
| |
current directory no longer exists incorrectly and breaks `make cleandir'.
|
|
|
|
| |
handling of .. is now the default.
|
|
|
|
| |
on a line by itself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o Change
int
foo() {
...
to
int
foo(void)
{
...
|
|
|
|
|
|
|
|
| |
setvar() and passed to setvareq(). When the VTEXTFIXED flag is set,
that copy is never freed, causing a memory leak.
PR: 31533
Submitted by: maxim@macomnet.ru
|
|
|
|
| |
Fix a warning.
|
| |
|
|
|
|
|
| |
PR: 2541
Obtained from: NetBSD
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
| |
PR#2331: strange output of sh's pwd on symlinked directories.
|
| |
|
|
|
|
|
|
| |
from leaking out.
Noticed by: bde
|
|
|
|
|
|
| |
use 'getcwd(NULL, 0)' just as pwd(1) does.
Suggested by: bde
|
|
|
|
|
|
|
| |
now handles the getpwd() init problem the same way as bash
and ksh do. Also while I was in here, I cleaned up the format
a little, removed some unnnecessary #if SYMLINKS cruft, and
changed the pwd builtin to use getcwd(3) as Joerg suggested.
|
|
|
|
| |
Obtained from: NetBSD, me
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
merge of parallel duplicate work by Steve Price and myself. :-]
There are some changes to the build that are my fault... mkinit.c was
trying (poorly) to duplicate some of the work that make(1) is designed to
do. The Makefile hackery is my fault too, the depend list was incomplete
because of some explicit OBJS+= entries, so mkdep wasn't picking up their
source file #includes.
This closes a pile of /bin/sh PR's, but not all of them..
Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
|
|
|
|
|
|
| |
noticed on a NetBSD bugs mailing list but this is entirely my own work.
Inspired by: Scott Reynolds <scottr@plexus.com>, for NetBSD
|
|
|
|
|
| |
Convert "" to "." for "cd" and "cd ''". chdir("") is required to fail
on POSIX systems.
|
|
|
|
|
|
|
|
|
|
| |
find it in /bin. This is something of a kludge, I know, but consider
my limited alternatives: I can't make this an execvp() without making
people scream that I introduced a failure point or slowed down pwd,
and I can't make it an optional macro since crunch doesn't let you pass
arbitrary command-line args to the build of one of its crunch-ees.
This is the simplest, if not the nicest looking, solution I could come up
with.
|
| |
|
|
|