langs/Shell/shell-quine.sh

8 lines
163 B
Bash
Executable File

#!/bin/sh
D="echo \"#!/bin/sh\"\necho \"D=\"\`echo -E \$D\`\"\necho -e \"\$D\"\n"
echo "#!/bin/sh"
echo "D=\"`echo -E $D`\""
echo -e "$D"
# still not working :(