‘bad fd number’ error in ubuntu 6.10 (ed
further reading:
this tip has been brought to you by someone who knows just enough shell scripting to be dangerous.
if you’re developing your own shell script and your users are reporting this error to you,[link widoczny dla zalogowanych], you should change the first line of your script to #,[link widoczny dla zalogowanych]!/bin/bash, since you’ve been relying on bash-specific extensions without realizing it. or better yet, take the time to learn what those extensions are, and fix them so your script works in posix-compliant shells. you can manually install dash and test compatibility by changing the first line of your script to #!/bin/dash, then change it back to #,[link widoczny dla zalogowanych]!/bin/sh once everything works again. i did this with my podencoder script and found a few surprises.
相关的主题文章:
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum