Project

General

Profile

« Previous | Next » 

Revision 9322

web/links/index.htm: updated to Firefox bookmarks

View differences:

index.htm
224 224
                    <DT><A HREF="http://stackoverflow.com/questions/7518584/is-there-any-mechanism-in-shell-script-alike-include-guard-in-c" ADD_DATE="1366930192" ICON_URI="http://cdn.sstatic.net/stackoverflow/img/favicon.ico" LAST_CHARSET="UTF-8"><img width="16" height="16" src="http://cdn.sstatic.net/stackoverflow/img/favicon.ico" style="margin-right: 0.5em;"/>Is there any mechanism in Shell script alike &quot;include guard&quot; in C++? - Stack Overflow</A>
225 225
                    <DT><A HREF="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times" ADD_DATE="1368214857" ICON_URI="http://cdn.sstatic.net/superuser/img/favicon.ico" LAST_CHARSET="UTF-8"><img width="16" height="16" src="http://cdn.sstatic.net/superuser/img/favicon.ico" style="margin-right: 0.5em;"/>Linux command to repeat a string n times - Super User</A>
226 226
                    <DT><A HREF="http://mivok.net/2009/09/20/bashfunctionoverrist.html" ADD_DATE="1366893028" LAST_CHARSET="UTF-8"><img width="16" height="16" src="blank.gif" style="margin-right: 0.5em;"/>Mivok.net - Bash function renaming and overriding</A>
227
                    <DT><A HREF="http://unix.stackexchange.com/questions/23026/how-can-i-get-bash-to-exit-on-backtick-failure-in-a-similar-way-to-pipefail" ADD_DATE="1368444472" ICON_URI="http://cdn.sstatic.net/unix/img/favicon.ico" LAST_CHARSET="UTF-8"><img width="16" height="16" src="http://cdn.sstatic.net/unix/img/favicon.ico" style="margin-right: 0.5em;"/>shell script - How can I get bash to exit on backtick failure in a similar way to pipefail? - Unix &amp; Linux Stack Exchange</A>
228
<DD>&quot;a way to take the exit status into account is to use the command substitution in a simple assignment: then the exit status of the assignment is the exit status of the last command substitution in the assignment(s).&quot;
229

  
230
&quot;Only other solution that came to mind at this moment would be to use read:
231

  
232
 ls -l ghost_under_bed | read name&quot;
233

  
234
&quot;Another case to watch for is explicit subshells: (somecommand). According to the interpretation above, the subshell may return a nonzero status, but since this is not a simple command in the parent shell, the parent shell should continue.&quot;
235
this is why errexit doesn&#39;t work properly for subshells on Mac
227 236
                    <DT><A HREF="http://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-bash-variable" ADD_DATE="1368219012" ICON_URI="http://cdn.sstatic.net/stackoverflow/img/favicon.ico" LAST_CHARSET="UTF-8"><img width="16" height="16" src="http://cdn.sstatic.net/stackoverflow/img/favicon.ico" style="margin-right: 0.5em;"/>string - How to trim whitespace from bash variable? - Stack Overflow</A>
228 237
<DD>-
229 238
the following *doesn&#39;t* work:

Also available in: Unified diff