Some issues were brought up in the r/commandline thread. A couple were fixed, but it still warns that for-loops are "brittle" break with spaces when they don't if done correctly, and doesn't use...
Some issues were brought up in the r/commandline thread. A couple were fixed, but it still warns that for-loops are "brittle" break with spaces when they don't if done correctly, and doesn't use --.
** is expanded to all files and directories in the children directories, with a depth limit of 1.
I only skimmed the article, but this is another issue I noticed. ** expands to the same as * by default, and the only reason the children are shown is because they use ls. With the globstar shell option enabled (shopt -s globstar), ** expands recursively to all files and directories with no depth limit.
Some issues were brought up in the r/commandline thread. A couple were fixed, but it still warns that for-loops are "brittle" break with spaces when they don't if done correctly, and doesn't use
--
.I only skimmed the article, but this is another issue I noticed.
**
expands to the same as*
by default, and the only reason the children are shown is because they usels
. With theglobstar
shell option enabled (shopt -s globstar
),**
expands recursively to all files and directories with no depth limit.