Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

@(1csh)

alias(1csh)

bg(1csh)

break(1sh)

cd(1csh)

chdir(1csh)

continue(1csh)

continue(1sh)

csh(1csh)

dirs(1csh)

echo(1csh)

eval(1csh)

exec(1csh)

exit(1csh)

fg(1csh)

glob(1csh)

goto(1csh)

hashstat(1csh)

history(1csh)

jobs(1csh)

kill(1csh)

limit(1csh)

BREAK(1CSH)

logout(1csh)

nice(1csh)

nohup(1csh)

notify(1csh)

onintr(1csh)

popd(1csh)

pushd(1csh)

rehash(1csh)

repeat(1csh)

set(1csh)

setenv(1csh)

sh(1sh)

shift(1csh)

source(1csh)

stop(1csh)

suspend(1csh)

time(1csh)

umask(1csh)

unhash(1csh)

unalias(1csh)

unlimit(1csh)

unset(1csh)

unsetenv(1csh)

wait(1csh)

which(1csh)



BREAK(1CSH)             COMMAND REFERENCE             BREAK(1CSH)



NAME
     break - exit from loop (csh built-in)

SYNOPSIS
     break

DESCRIPTION
     The break command causes execution to resume after the end
     statement of the enclosing while or foreach loop.  The
     remaining commands on the current line are executed, thus,
     multi-level breaks may be implemented by putting multiple
     break commands on the same line.

EXAMPLES
     The following example shows a while statement which is used
     to read data from the standard input and process the data
     using the (undefined) command `process'.  The break is used
     to exit the loop when the string ``end'' is read.

          while (1)
               set x="$<"
               if ("$x" == "end") then
                    break
               endif
               process "$x"
          end

DIAGNOSTICS
     break: Too many arguments.
        The break command does not take arguments, but arguments
        were given.

     break: Not in while/foreach.
        A break command was found outside of a while or foreach
        statement.

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [1]            An error of the type described in the message
                    occurred.

CAVEATS
     Unlike the sh(1sh) built-in break, this command does not
     take an argument.

SEE ALSO
     @(1csh), alias(1csh), bg(1csh), break(1sh), cd(1csh),
     chdir(1csh), continue(1csh), continue(1sh), csh(1csh),
     dirs(1csh), echo(1csh), eval(1csh), exec(1csh), exit(1csh),
     fg(1csh), glob(1csh), goto(1csh), hashstat(1csh),
     history(1csh), jobs(1csh), kill(1csh), limit(1csh),



Printed 5/12/88                                                 1





BREAK(1CSH)             COMMAND REFERENCE             BREAK(1CSH)



     logout(1csh), nice(1csh), nohup(1csh), notify(1csh),
     onintr(1csh), popd(1csh), pushd(1csh), rehash(1csh),
     repeat(1csh), set(1csh), setenv(1csh), sh(1sh), shift(1csh),
     source(1csh), stop(1csh), suspend(1csh), time(1csh),
     umask(1csh), unhash(1csh), unalias(1csh), unlimit(1csh),
     unset(1csh), unsetenv(1csh), wait(1csh), and which(1csh).

















































Printed 5/12/88                                                 2



%%index%%
na:336,119;
sy:455,151;
de:606,638;
ex:1244,573;
di:1817,482;
rv:2299,274;
ca:2573,234;
se:2807,741;3956,873;
%%index%%000000000143

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026