This website requires JavaScript.
CODE
0x495fab29
Explore
Sign in
forks
/
apenwarr-redo
Watch
1
Star
0
Fork
You've already forked apenwarr-redo
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
a8bec74449
apenwarr-redo
/
t
/
110-compile
/
LD.do
7 lines
83 B
Text
Raw
Normal View
History
Unescape
Escape
$3 and stdout no longer refer to the same file. This is slightly inelegant, as the old style echo foo echo blah chmod a+x $3 doesn't work anymore; the stuff you wrote to stdout didn't end up in $3. You can rewrite it as: exec >$3 echo foo echo blah chmod a+x $3 Anyway, it's better this way, because now we can tell the difference between a zero-length $3 and a nonexistent one. A .do script can thus produce either one and we'll either delete the target or move the empty $3 to replace it, whichever is right. As a bonus, this simplifies our detection of whether you did something weird with overlapping changes to stdout and $3.
2010-12-11 00:29:04 -08:00
exec >$3
Extremely basic first crack at implementing djb's redo. And a test program.
2010-11-12 05:24:46 -08:00
cat <<-EOF
OUT="\$1"
shift
gcc -Wall -o "\$OUT" "\$@"
EOF
chmod a+x $3
Reference in a new issue
Copy permalink