Commit 5ecaedda authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.310
Rev: src/lcp:1.1
parent 3937414d
2001-02-22 Niels Mller <nisse@cuckoo.localdomain>
* src/randomness.c (do_arcfour_random): Spelling fix.
* Released lsh-1.1.7.
2001-02-22 Niels Mller <nisse@ehand.com>
......
#! /bin/sh
function quote ()
{
echo '"'"$1"'"'
}
function foo ()
{
echo $1 | (IFS=":" read a file
if [ -z "$file" ]; then
quote "$a"
else
echo $a | (IFS="@" read user host
if [ -z "$host" ]; then
echo `quote $user` ":" `quote $file`
else
echo `quote $user` "@" `quote $host` ":" `quote $file`
fi)
fi)
}
foo "file foo"
foo "sture:index.html"
foo "nisse@sture:konstig fil"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment