This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] rmdir failures



On 2006-10-18, at 21:12, DJ Delorie wrote:



+ -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | :

I hope you mean || and not |

This may be the more "canonical" way of implementing the desired result. However the 'pipe' construction serves the purpose just as well:


eje178:~/gcc-pure dalecki$ rmdir notthere; echo $?
rmdir: notthere: No such file or directory
1
eje178:~/gcc-pure dalecki$ rmdir notthere | : ; echo $?
rmdir: notthere: No such file or directory
0
eje178:~/gcc-pure dalecki$ rmdir notthere || : ; echo $?
rmdir: notthere: No such file or directory
0
eje178:~/gcc-pure dalecki$


Marcin Dalecki




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]