1.7 BASH

Purpose

Provides the BASH shell, including a variety of useful system utilities, on NetWare®.

Syntax



bash.nlm

Known Issues

This section contains know issues, including issues where BASH might work differently than on NetWare.

Limited Functionality on DOS Partitions

Several BASH utilities rely on the existence of inode numbers for proper operation. Because files on the DOS partition do not have inode numbers, these utilities might exhibit strange behavior when accessing files on DOS partitions.

These errors might limit functionality on DOS partitions, but should not result in server abends or data loss.

Control Sequences

Command Sequence

Description

Ctrl+Z (suspend)

Does not work and has no effect on processes.

Ctrl+C (interrupt)

Works only for processes actively reading from the keyboard or writing to the screen.

Ctrl+\ (quit)

Works only for processes actively reading from the keyboard or writing to the screen.

Ctrl+D (end of file)

Works only for processes actively reading from the keyboard or writing to the screen.

Creating Mount Points to Access NetWare Volumes

The BASH shell on NetWare uses POSIX style directory syntax similiar to Linux* when specifying pathnames. The foreward slash character (/) is a path separator. The backslash character (\) is not a path separator. Volume names may not be used to specify the location of files or directories (that is, it is invalid to type cd sys:/system). The sys: volume is specified by an initial foreward slash (/) in the path (for example, cd /system). To access other volumes at the BASH prompt, you must set up a pathtab file.

To set up this file, modify (or create) sys:/etc/pathtab, placing each mount point and volume on a line similar to the following:

[POSIXPath] [NetWare Path]

For example:



/vols/data  data:\
/mystuff     data:\users\username
/vol1        VOL1:\

The first example mounts the data volume to /vols/data in BASH, the second example mounts the users\username folder to /mystuff in BASH, and so on. In these examples, the directories /vols/data, /mystuff, and /vol1 must exist in the root of the sys: volume.

NOTE:Creating mount points to remote systems is not supported.

Supported BASH Commands

The following BASH commands are supported in NetWare. For commands marked with *, see Notes. Information on using each of these commands can be obtained by running man [command] in BASH.

ar

arch

awk

basename

bc

bunzip2

bzip2

bzip2recover

cal

cat

chgrp

chmod*

chown

cksum

clear

cmp

col

colcrt

colrm

column

comm

cp

cpio*

csplit

cut

date

dc

dd

df

diff

diff3

dir

dircolors

dirname

du

echo

egrep

env

envsubst

expand

expr

factor

false

fgrep

file

find

flex

fmt

fold

funzip

getopt

gettext

gnucore

grep

groups

gunzip

gzip

head

hostid

hostname

iconv

id

install

join

kill

less

lessecho

lesskey

line

ln*

Logger

look

ls

m4

make

man

man2html

mcookie

md5sum

mkdir

mkfifo

mknod*

mktemp

more

mv

namei

ngettext

nice*

nm

nohup

od

paste

patch

pathchk

pawk

ping

pr

printenv

printf

ptx

pwd

ranlib

readlink*

rename

renice*

rm

rmdir

sdiff*

sed

seq

sh

sha1sum

shred

size

sleep

sort

split

stat

strings

strip

stty*

sum

sync

tac

tail

tar*

tee

test

time

touch

tr

true

tsort

tty

ul

uname

unexpand

uniq

unlink

unzip

unzipsfx

vdir

vim

wc

wget

whereis

which

whoami

xargs

xxd

yes

zcat

zip

zipinfo

zipnote

zipsplit

 

 

 

 

Notes

The following table contains notes for any utility marked with * in the previous table:

Utility

Notes

chmod

Modifies only the write bit on file permissions.

cpio

Does not support archiving on remote systems or as a different user. Does not support file links.

ln

Hard links are supported on Novell Storage Services (NSS) volumes on NetWare 6.5 and OES NetWare and Linux. For information, see Managing Hard Links in NW 6.5 SP8: NSS File System Administration Guide. Soft links are not supported in NSS.

File links are not supported on NetWare Traditional volumes; it always returns an error.

mknod

Supports only FIFOs on NetWare.

nice

Has no effect on NetWare.

readlink

File links are not supported on NetWare. Always returns success.

renice

Has no effect on NetWare.

sdiff

Does not support interactive editing mode.

stty

Not all flags are supported or relevant on NetWare.

tar

Does not support the -z flag.