home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.folklore.computers
- Path: sparky!uunet!psinntp!cubtosys!hees
- From: hees@cubic.com (Phil Hees)
- Subject: Re: command abbreviation
- Organization: Cubic Tomato Corp.
- Date: Fri, 13 Nov 92 19:02:08 GMT
- Message-ID: <1992Nov13.190208.17876@cubic.com>
- Lines: 26
-
- jsr@dexter.mi.org (Jay S. Rouman) writes:
- |> u734120@bruny.cc.utas.edu.au (John Lamp) writes:
- |> >shades of the dreaded pip command of CP/M and DEC fame - this also was a
- |> >copy command which was pip <destination> <source>
- |>
- |> I agree that the PIP syntax seems backwards, but in all fairness, you
- |> left out the equals sign. It's "PIP destination = source". It really
- |> isn't much stranger than "x = 1".
-
- Agreed. The first copy command I ever used was the PIP command on a
- PDP-8, and it has always seemed the most natural syntax since the
- assignment operator works the same way (right-to-left).
-
- In addition, the standard C library routines use the same ordering.
- For example:
-
- strcpy(dest, source);
-
- I always use the (dest [,dest], src [,src]) ordering for my own function
- calls, and really get locked into this mindset, to the point that I often
- find myself checking the man page to reassure myself that I am using the
- correct order for the cp (Unix) or copy (VMS, DOS) commands.
-
- --
- Phil Hees
- hees@cubic.com
-