C-Shell
A simple shell written in C.
|
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "../internal_commands.h"
Functions | |
int | pwd (int nargs, char **args) |
Print the full filename of the current working directory. | |
Variables | |
int | opterr |
int | optind |
int | optopt |
char * | optarg |
int pwd | ( | int | nargs, |
char ** | args ) |
Print the full filename of the current working directory.
If no option is specified, -P is assumed. Option -L
overrides -P
when both are used together.
Options:
-L
- use PWD from environment-P
- resolves symlinks to get the current working directory.
|
extern |
|
extern |
int optind |
int optopt |