source: trunk/essentials/app-shells/bash/lib/sh/makepath.c@ 3254

Last change on this file since 3254 was 3231, checked in by bird, 19 years ago

eol style.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1/* makepath.c - glue PATH and DIR together into a full pathname. */
2
3/* Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
4
5 This file is part of GNU Bash, the Bourne Again SHell.
6
7 Bash is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with Bash; see the file COPYING. If not, write to the Free Software
19 Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
20
21#include <config.h>
22
23#if defined (HAVE_UNISTD_H)
24# ifdef _MINIX
25# include <sys/types.h>
26# endif
27# include <unistd.h>
28#endif
29
30#include <bashansi.h>
31#include "shell.h"
32
33#include <tilde/tilde.h>
34
35#ifndef NULL
36# define NULL 0
37#endif
38
39/* MAKE SURE THESE AGREE WITH ../../externs.h. */
40
41#ifndef MP_DOTILDE
42# define MP_DOTILDE 0x01
43# define MP_DOCWD 0x02
44# define MP_RMDOT 0x04
45#endif
46
47extern char *get_working_directory __P((char *));
48