[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with "ed"
From: |
mikem388 |
Subject: |
Problem with "ed" |
Date: |
Wed, 14 Sep 2005 23:15:34 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
I apologize if this is the wrong place to send this question.
This a little test I'm doing that doesn't seem to work, but I can't see
anything wrong with it. Is this a bug? I tried this on several
distribution, including Fedora core 4, with the same results.
# Create an input file
cat << \EOF > -infile
aaa
bbb
aaa
EOF
#Create an input command file
cat << \EOF > cmdfile
1,$s/aaa/bbb/
w
q
EOF
#This command fails with or without '-s' option.
ed -s -- -infile < cmdfile
#The command returns a ?
echo $?
#returns 4. Don't have a clue what this means.
Thanks in advance,
Mike
- Problem with "ed",
mikem388 <=