Skip to content

Bash language formatting broken in 8.5.4 #13943

@rinaldsb

Description

@rinaldsb

Description of the Issue

Bash langugage formatting for the following code in versions 8.5.3 works and is broken in version 8.5.4:

#!/usr/bin/bash 
# $ and " together makes bash language unreadable for v>8.5.3

# Block 1 
echo "Block 1"

mkdir -p ~/tmp/Config-$(date '+%Y%m%d')
echo ~/tmp/Config-$(date '+%Y%m%d')

# Block 2
echo "Block 2 $" # makes bug v>8.5.3

mkdir -p ~/tmp/Config-$(date '+%Y%m%d')
echo ~/tmp/Config-$(date '+%Y%m%d')

# "" : resetting the bug v>8.5.3

# Block 3 

echo "Block 3 $" # makes bug v>8.5.3

mkdir -p ~/tmp/Config-$(date '+%Y%m%d')
echo ~/tmp/Config-$(date '+%Y%m%d')

# Block 4 

# "" : resetting the bug v>8.5.3

echo "Block 4"

mkdir -p ~/tmp/Config-$(date '+%Y%m%d')
echo ~/tmp/Config-$(date '+%Y%m%d')

Expected Behavior / Actual Behavior

Attaching screenshots of formatted code in v 8.5.3 (Expected) and 8.5.4 (Broken)

Bash formatting bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions