9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] v8 shell
@ 2003-11-14 18:12 Richard C Bilson
  2003-11-14 19:09 ` rog
  2003-11-14 19:12 ` boyd, rounin
  0 siblings, 2 replies; 30+ messages in thread
From: Richard C Bilson @ 2003-11-14 18:12 UTC (permalink / raw)
  To: 9fans

> $ ls() {
> 	builtin ls "$@" | cat
> }
> $ ls
> -bash: builtin: ls: not a shell builtin
> $

Try using "command" instead of "builtin".


^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [9fans] v8 shell
@ 2003-11-14  8:13 boyd, rounin
  0 siblings, 0 replies; 30+ messages in thread
From: boyd, rounin @ 2003-11-14  8:13 UTC (permalink / raw)
  To: 9fans

> The biggest two things that V8 shell has that the v7 shell doesn't
> is shell functions and appending command lines to a history file.
> I'm sure there were other changes, but these are the one I miss.

you forget 'builtin' and 'whatis'.  as rob said 'programming the inputs'.

so the 8th Ed shell had functions:

     func()
     {

          ....

     }

$0 was the name of the script.  $* was the rest of the args to the function.
it return 0 or non zero iirc, but my 9th Ed manual is in .au

whatis & builtin were _essential_, so you could write a function like cd, so
it could use 'builtin' so you could have a function called 'cd' and it would do
what you wanted.

that sysVile 'type' thing was an abortion.

as Yes said:

    as one with the knowledge and power of the source

i was bored and had the source to sVr2 so i coded it up.

these links maybe interesting:

    http://www.std.org/~shand/jjm/mail/compact.html
    http://www.std.org/~shand/jjm/mail/flint.html

# 248 622

-- Susan



^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <Pine.GSO.4.21.0311131606190.27715-100000@zenon.ceid.upatras.gr>]

end of thread, other threads:[~2003-11-18  9:48 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-14 18:12 [9fans] v8 shell Richard C Bilson
2003-11-14 19:09 ` rog
2003-11-14 19:12 ` boyd, rounin
  -- strict thread matches above, loose matches on Subject: below --
2003-11-14  8:13 boyd, rounin
     [not found] <Pine.GSO.4.21.0311131606190.27715-100000@zenon.ceid.upatras.gr>
2003-11-13 16:06 ` Taj Khattra
2003-11-13 17:41   ` rob pike, esq.
2003-11-13 23:44     ` George Michaelson
2003-11-14  0:43       ` rog
2003-11-14  6:59         ` boyd, rounin
2003-11-17 10:26           ` Douglas A. Gwyn
2003-11-17 12:13             ` Charles Forsyth
2003-11-18  9:48               ` Douglas A. Gwyn
2003-11-14 12:04         ` John Murdie
2003-11-14 18:01           ` rog
2003-11-14 19:04             ` boyd, rounin
2003-11-14 19:18               ` rog
2003-11-14 19:31                 ` boyd, rounin
2003-11-14 22:25             ` Roman Shaposhnick
2003-11-16 11:45             ` Richard Miller
2003-11-16 12:01               ` Geoff Collyer
2003-11-16 12:21                 ` Richard Miller
2003-11-17 20:31                   ` rog
2003-11-16 14:23               ` Russ Cox
2003-11-16 14:35                 ` Richard Miller
2003-11-15 15:03           ` a
     [not found] ` <oprykztjlztsux9g@smtp.borf.com>
2003-11-14  0:41   ` boyd, rounin
2003-11-14 17:51     ` rog
2003-11-14 18:51       ` boyd, rounin
2003-11-17 10:26       ` Douglas A. Gwyn
2003-11-14  7:05   ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).