5 votes

Topic deleted by author

1 comment

  1. Crestwave
    Link
    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.

    1 vote