Re: bash equivalent of "print -u<n> foo"?

From: Chris F.A. Johnson (c.f.a.johnson_at_rogers.com)
Date: 09/16/03


Date: 16 Sep 2003 17:44:27 GMT

On Tue, 16 Sep 2003 at 17:37 GMT, Michael Wang wrote:
> What is the bash equivalent of "print -u<n> foo" in ksh?

echo foo >&<n>
printf "%s\n" foo >&<n>

> And how do you think of bash?

     Great for interactive use.
     Great for scripting (especially interactive).

     Slower than other shells, but generally more than fast enough.

-- 
    Chris F.A. Johnson                        http://cfaj.freeshell.org
    ===================================================================
    My code (if any) in this post is copyright 2003, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


Relevant Pages

  • Re: Shell Script Question
    ... On Tue, 12 Aug 2003 at 02:20 GMT, Michael Wang wrote: ... My code in this post is copyright 2003, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.shell)
  • Re: Question
    ... On Fri, 29 Aug 2003 at 00:25 GMT, Michael Wang wrote: ... > If you do not do what I suggested, I don't think your string ... My code in this post is copyright 2003, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.shell)
  • Re: Question
    ... On Wed, 27 Aug 2003 at 02:05 GMT, Michael Wang wrote: ... My code in this post is copyright 2003, Chris F.A. Johnson ... and may be copied under the terms of the GNU General Public License ...
    (comp.unix.shell)
  • [tip:perf/core] perf/scripts: Add Python scripting engine
    ... Add base support for Python scripting to perf trace. ... * GNU General Public License for more details. ...
    (Linux-Kernel)
  • [PATCH 04/10] perf/scripts: Move Perl scripting files to scripting-engines dir
    ... Create a scripting-engines directory to contain scripting engine ... -static void print_unsupported_msg ... * GNU General Public License for more details. ... +static int stop_script_unsupported ...
    (Linux-Kernel)