Ed Howland · @edhowland
12 followers · 177 posts · Server fosstodon.org

@podfeet I just checked, and ,TheBashFiles,StartsAtEpisode143.

#programmingbystealth #bash #basics

Last updated 1 year ago

Ed Howland · @edhowland
11 followers · 152 posts · Server fosstodon.org

@podfeet @bbusschots wow! It just blew up when I did an integration test.
But I wrote solid unit test. There must be something that has to do with loading a file using the source command and maybe at overwrites some variables. Still researching it.

#bash #programmingbystealth #getopts #unittest #integrationtest #pbs149

Last updated 1 year ago

Ed Howland · @edhowland
2 followers · 49 posts · Server fosstodon.org

@podfeet just learned a great new trick regarding using arrays in . When you have a single element of the array that has multiple words, separated by a space you need to set the. IFS variable to an empty string on its own line. This prevents word splitting, especially when expanding the array for using the four or the select statements.

#programmingbystealth #olddogs #NewTricks #bash

Last updated 1 year ago