Re: Switching from tcsh to bash as an interactive shell

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 09/17/04


Date: 17 Sep 2004 18:37:27 GMT

On 2004-09-17, P.T. Breuer wrote:
> Chris F.A. Johnson <cfajohnson@gmail.com> wrote:
>> ["Followup-To:" header set to comp.unix.shell.]
>> On 2004-09-17, P.T. Breuer wrote:
>> > Tristan Miller <psychonaut@nothingisreal.com> wrote:
>> >> Yes there is, and I stated it in my original post. Because I do my
>> >> scripting in bash, I find myself constantly typing things like "for f in
>> >> *; do foo; done" at the command line. Needless to say this is incorrect
>> >
>> > One doesn't type programs on the command line
>
>> Once certainly does.
>
> One certainly does not.
>
>> It is one of the great advantages of a Bourne-type shell that one
>> can type a multiple line command at the prompt, without having to
>> go through the process of committing it to a script.
>
> Indeed it is - it's called interpreting, and it makes debugging (small
> things) easy. However, that's not the "command line", that's an
> interpreter, and I encourage you to use it.
>
> Do not do your programming on the command line. Use an interpreter.
>
>> It is extremely convenient for testing a structure before putting
>> it in a script.
>
> No, using an interpreter is, not "it" is.

   What do you think you are using at the command line if not an
   interpreter?

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


Relevant Pages

  • Re: Attribute Parameter Problem with bind_param( )
    ... I've got a script that works perfectly when called from the command ... O'Reilly's Programming the Perl DBI: ... from the command prompt? ...
    (comp.lang.perl.misc)
  • Re: No argv, argc for worker thread
    ... I expected that a Tcl interpreter started in any manner would accept options ... This is how the interpreter works with command line options ... a "main" script processes command line ...
    (comp.lang.tcl)
  • Re: How to display UTF-8 output to command shell in Win7?
    ... So, to do this, Right-click on the bar of the cmd Prompt, click on ... change the default values of the command console. ... in your Perl script, using a backtick. ... systemwould be preferable to backticks in void context. ...
    (perl.beginners)
  • system command wont let go
    ... I am having some difficulties with the 'system' command. ... prompt I can run the program by typing in "~/runsgood.exe". ... ENTER INPUT FILE NAME WITHOUT .in EXTENSION. ... Here is the script ...
    (comp.lang.perl.misc)
  • Re: [PS] Escaping from line continuation?
    ... When you enter an expression that requires additional input, the interpreter ... will continue to prompt until you provide that input or cancel the command ... Repeatedly pressing enter just moves to a new line continuation? ...
    (microsoft.public.windows.server.scripting)