Created
April 10, 2012 18:38
-
-
Save ogredude/2353567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./automysqlbackup/automysqlbackup: line 835: 6: Bad file descriptor | |
./automysqlbackup/automysqlbackup: line 836: 7: Bad file descriptor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @info: Restore stdout and stderr redirections. | |
# @deps: (none) | |
removeIO() { | |
exec 1>&6 6>&- # Restore stdout and close file descriptor #6. | |
exec 2>&7 7>&- # Restore stdout and close file descriptor #7. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue can be fixed by using the correct syntax: