Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!cbmvax!andy From: andy@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: Replacement ECHO / CLI feature Message-ID: <1905@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 20-May-87 10:30:27 EDT Article-I.D.: cbmvax.1905 Posted: Wed May 20 10:30:27 1987 Date-Received: Fri, 22-May-87 00:43:54 EDT References: <462@inria.UUCP> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 50 In article <462@inria.UUCP> rouaix@inria.UUCP (Francois Rouaix) writes: > >1) There is in AmigaDos Manual the description for some "quoting" feature >in CLI command parsing (could be p 1-3). >To introduce a " (double-quote) in a filename, you shall use * (star) as >a quoting character (somewhat like back-slash under Unix). >Consequently, you must use * to quote itself. > >2) Echo command: it is not specified whether the argument is to be considered >as a string or not. >Practice shows that the argument for Echo is parsed as a filename (shall >we say it is a bug ? :-) ), so that << echo "*" >> won't work. Actually, to echo a * either use echo * or echo "**" to echo the " (which is what echo figured you were trying to do) you need a closing quote, ie echo "*"" Additional fun stuff with * is *N (newline) *E (escape) >I make this remark for two reasons: > 1) there has been some weeks ago a posting containing some >alternative for AmigaDOS commands, one of them being echo. >this version DOES NOT RESPECT the "/* feature. > 2) i'm writing currently a new kind (i think) of execute scripts >using EDIT (no kidding !) and i use Echo to create command files for EDIT. I play with these too. Edit makes an OK stream editor, as it turns out, as long as you don't mind occasionally writing out a temp file to RAMdisk, and reading it back in. My original touch shell script used Edit, before I decided to get tricky with argument passing. >Some of these scripts will be posted here, and i want to prepare you to >the fact that these scripts will not work when using the "short echo". This is an excellent point, dear to the hearts of shell script writers... We assume the original commands (as a L.C.D.) with the original names. So, keep those old commands around...they may be handy someday! (I always keep an *untouched* Workbench disk around for just such occasions) andy -- andy finkel {ihnp4|seismo|allegra}!cbmvax!andy Commodore/Amiga "An end is always a new beginning." - Captain Cloud Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.