plan9fox/sys/src/ape/cmd
Ori Bernstein 407cf4ac6e ape: simplify mkfile (thanks amavect)
ape cp, mv, and cc build with ?c, not pcc
ape cp and mv just ignore one or two extra flags,
instead of providing posix compatibility
it's better to fail then do nothing

remove cp.c and mv.c
move cc.c to /sys/src/ape/9src so it doesn't
need its own mkfile rule
2020-07-16 15:22:42 -07:00
..
diff Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
expr expr: fix missing type declarations for match(), which broke on amd64 as pointers dont fit into a long 2014-07-12 03:02:21 +02:00
make ape/make: fix \ line continuation parsing 2018-09-13 11:54:20 +02:00
patch rename ape manpages so they dont get filtered out as object files 2011-05-04 06:19:09 +00:00
pax fix misleading/wrong fd checks 2018-10-20 18:44:09 +00:00
pdksh import updated compilers from sources 2012-07-30 19:11:16 +02:00
sed import updated compilers from sources 2012-07-30 19:11:16 +02:00
basename.c import updated compilers from sources 2012-07-30 19:11:16 +02:00
dirname.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
kill.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile ape: simplify mkfile (thanks amavect) 2020-07-16 15:22:42 -07:00
psh.rc boot(8): changed tread to read, other: fix perms 2011-04-18 01:59:36 +00:00
README Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
uname.c import updated compilers from sources 2012-07-30 19:11:16 +02:00

This is an attempt to make the utilities specified in
POSIX 1002.3 available, assuming /$objtype/ape/bin
and /lib/rc/ape are bound to /bin before the regular
bin directories.

Here's a brief description of the status of these commands.

EXECUTION ENVIRONMENT UTILITIES

awk	Plan 9 awk.
	system() uses rc instead of sh.

basename POSIX conforming

bc	Plan 9 bc.

cat	Plan 9 cat.
	no -u option (for byte-at-at-time)

cd	shell builtins
	doesn't use $HOME or $CDPATH

chgrp	Plan 9 chgrp.
	no -R option (for recursive chgrp).
	only takes name, not number


chmod	Plan 9 chmod.
	no -R option (for recursive chmod).
	no s (setuid) and X (conditional x) perms.
	nonstandard a,l perms.

chown	Always prints 'Permission denied' and fails.

cksum	not implemented

cmp	Plan 9 cmp.
	nonstandard -L option
	no line number printed; hex instead of octal for bytes

comm	Plan 9 comm.

command	not implemented

cp	Plan 9 cp.
	no -R and -r (recursive), -i (interactive), -p (preserve) options
	nonstandard -z option

cut	not implemented

date	Plan 9 date.
	no format option
	nonstandard -n option

dd	Plan 9 dd.

diff	Plan 9 diff.
	can't have both files directories
	no -r (recursive) option
	-c<n> instead of -c and -C <n> for context

dirname	POSIX conforming

echo	Plan 9 echo

ed	Plan 9 ed
	nonstandard b,wq commands

env	not implemented

expr	V10 expr (seems to be like POSIX)

false	POSIX conforming

find	not implemented

fold	not implemented

getconf	not implemented

getopts	not implemented

grep	script calling Plan 9 grep -G
	s means q, should mean forget nonexistent files
	nonstandard 1,b,L,q options

head	not implemented

id	not implemented

join	not implemented

kill	V10 kill
	no -s signalname, no -l arg

ln	not implemented

locale	not implemented

localedef not implemented

logger	not implemented

logname	not implemented

lp	Plan 9 lp

ls	Plan 9 ls

mailx	not implemented

mkdir	Plan 9 mkdir

mkfifo	not implemented

mv	Plan 9 mv

nohup	not implemented

od	not implemented

paste	not implemented

pathchk	not implemented

pax	implemented

pr	Plan 9 pr

printf	not implemented

pwd	Plan 9 pwd

read	shell builtin

rm	Plan 9 rm

rmdir	script
	no -p option

sed	v10 sed

sh	ksh93 -- POSIX compliant

sleep	Plan 9 sleep

sort	Plan 9 sort

stty	POSIX compliant (sort of)

tail	Plan 9 tail

tee	Plan 9 tee

test	Plan 9 test (POSIX compliant); copied as [

touch	Plan 9 touch

tr	Plan 9 tr

true	POSIX compliant

umask	noop

SOFTWARE DEVELOPMENT UTILITIES (OPTIONAL)

ar	script to call Plan9 ar, after arg conversion

make	V10 make

strip	not implemented

C LANGUAGE DEVELOPMENT UTILITIES OPTION

c89	script to APE environment cc (also avaiable as cc)

lex	Plan 9 lex

yacc	script to Plan 9 yacc

General Bugs:
The environment variables LANG, LC_ALL,
LC_CTYPE, and LC_MESSAGES are ignored.

The use of -- as an argument to stop option processing
is generally not done.

The many 'not implemented' functions will be implemented
as scripts using them show up.