Rc (Unix shell): Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 40:
The Bourne shell script:
 
<sourcesyntaxhighlight lang="bash">
if [ "$1" = "hello" ]; then
echo hello, world
Line 53:
done
fi
</syntaxhighlight>
</source>
 
is expressed in rc as:
 
<sourcesyntaxhighlight lang="text">
if(~ $1 hello)
echo hello, world
Line 72:
echo $i
}
</syntaxhighlight>
</source>
 
Rc also supports more dynamic piping: