Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 5/22/85; site osu-eddie.UUCP Path: utzoo!watmath!clyde!cbosgd!osu-eddie!karl From: karl@osu-eddie.UUCP (Karl Kleinpaste) Newsgroups: net.unix Subject: Re: Gripes about /bin/sh AND /bin/csh Message-ID: <1913@osu-eddie.UUCP> Date: Fri, 6-Jun-86 09:27:04 EDT Article-I.D.: osu-eddi.1913 Posted: Fri Jun 6 09:27:04 1986 Date-Received: Sat, 7-Jun-86 08:07:39 EDT References: <931@uwvax.UUCP> Organization: OSU Lines: 54 Keywords: RTFM. In article <931@uwvax.UUCP> pfeiffer@uwvax.UUCP (Phil Pfeiffer) writes: >I'm posting this message in reponse to a request from a fellow UW student. >This comes from a novice Unix user. Maybe some other people in the >unix community could prove to me that these gripes are really non-gripes. I suspect so. >I'm trying to do some extensive rapid prototyping in shellish right now... >...First, there's the bit about brain-damaged >quoting (or, non-quoting) of metacharacters. If you don't understand the quoting habits of csh (or sh), you haven't read the manual pages on them - the descriptions are really quite clear, compared to a lot of UNIX documentation. Single chars can be quoted with a backslash; strings can be single-quoted to prevent any further interpretation; and double-quoted to allow filename substitution without meta-char substitution. >I'm sure a lot of you already >know that the ability to use backquote to expand certain command strings >just isn't there. Yes, it is; backquoted command strings are supported by both sh and csh. If it weren't, I couldn't issue a command like ls -l `find . -size +100 -print` Read the manual. >'Twould be useful if one could abbreviate commands as >variables to make one's code more legible, a la lisp. Aliasing is supported by csh. Sh does it with plain variables. Read the manual. >That's irritating. What's really irritating, however, is the inability to >open and read multiple files from the shell. I mean, even RSX-11M's CSI has >this! Sourcing of other command files is supported by both csh and sh. Read the manual. >The requirement was as follows: ... After reading what you say you wanted to do (sketchy though it was), it seems to me you worked at it far too hard. You're not familiar with the tools available to you. RTFM and make sure you know how sharp your tools are before you pick them up, or you'll find yourself with cut fingers. In case you haven't notice the recurring refrain in all of the above response, it is this: Read the manual. -- Karl Kleinpaste