0

I'm new to learning bash scripting and I'm confused about the following code:

build_web_apps()
{
    for app in $web_apps
    do
        log "Building $app web app..."
        pushed $GIPHY_HOME/../$app >> /dev/null
        ...
        ... (some code)
        ...
        popd >> /dev/null
    done
}

I know what pushd and popd is, but what is the effect of >> in these lines?

Kid_Learning_C
  • 2,605
  • 4
  • 39
  • 71
  • 2
    It is very close to the linked duplicate. Answering it wouldn't add anything useful than the existing answers in that post. – Inian Aug 08 '19 at 04:28
  • 1
    `pushd` and `popd` print the current stack values to stdout, every time they are invoked. One can suppress these messages by re-directing them to `/dev/null` which just consumes it without putting it on screen. Though `>` is all you need, doing `>>` to `/dev/null` doesn't make much of a difference – Inian Aug 08 '19 at 04:30

0 Answers0