From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id EAA04222 for ; Fri, 1 Nov 1996 04:11:31 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA26369; Thu, 31 Oct 1996 12:01:50 -0500 (EST) Resent-Date: Thu, 31 Oct 1996 12:01:50 -0500 (EST) Sender: hniksic@public.srce.hr To: schaefer@nbn.com Cc: zsh-workers@math.gatech.edu Subject: Re: Parameter expansion bug? References: <199610311612.RAA27218@bolyai.cs.elte.hu> <961031085509.ZM5934@candle.brasslantern.com> X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/fetch/ X-Attribution: Hrv X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y" From: Hrvoje Niksic Date: 31 Oct 1996 17:57:39 +0100 In-Reply-To: "Bart Schaefer"'s message of Thu, 31 Oct 1996 08:55:09 -0800 Message-ID: X-Mailer: Red Gnus v0.53/XEmacs 19.14 Resent-Message-ID: <"6L9WJ1.0.uR6.zjDUo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2304 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bart Schaefer (schaefer@candle.brasslantern.com) wrote: > On Oct 31, 5:12pm, Zoltan Hidvegi wrote: > } Subject: Re: Parameter expansion bug? > } > } In zsh echo - does not print anything and echo - -n prints -n. How do you > } print -n under bash? > As nearly as I can tell, `echo -e -n` is the only way. It doesn't work for me: bash$ echo $BASH_VERSION 1.14.6(1) bash$ echo -e -n bash$ `-e' in bash is used to enable interpretation of control sequences like \n. echo [-neE] [arg ...] Output the args, separated by spaces. The return status is always 0. If -n is specified, the trail- ing newline is suppressed. If the -e option is given, interpretation of the following backslash- escaped characters is enabled. The -E option dis- ables the interpretation of these escape charac- ters, even on systems where they are interpreted by default. [... list of control sequences snipped ...] As far as I can see, no way is described to print `-n'. -- WWW: World-Wide-Waste. Waste management corporation, which handles the billions of tons of garbage generated by just about everybody these days. You owe the Oracle a good book. In HyperText, please.