Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh version and echo -n



On Fri, 16 Feb 1996, Chris Dean wrote:

> Using this version, "echo -n foo" doesn't work as expected.  I
> expected echo -n to print without a newline, instead nothing is
> printed:
> 
>         zen% echo foo
>         foo
>         zen% echo -n foo
>         zen% 
> 

i had this "problem" once before myself.  i believe it is your
prompt that is masking the output.  for example:

          Trout-871:~> echo -n foo                      p0 02/17/96 23:11
          Trout-872:~> echo -n foo; echo                p0 02/17/96 23:11
          foo
          Trout-873:~> echo -n foo; notacommand         p0 02/17/96 23:11
          foozsh: command not found: notacommand
          Trout-874:~> bob=`echo -n foo`                p0 02/17/96 23:11
          Trout-875:~> echo $bob                        p0 02/17/96 23:11
          foo
          Trout-876:~>

please pardon my excessive prompt.

sync'pely,
-s



Messages sorted by: Reverse Date, Date, Thread, Author