I am messing around in bash to try and create a custom PS1 but I'm running into an error when I try to print the absolute path of the directory I am in. I have a directory
$FIRMWARE which is a symlink. I want to display the resolved symlink in the PS1. I have the following code stripped of other info:
If I call this function I get
bash: /path/to/firmware: Is a directory
I tried following this post but the recommendations for quotes didn't solve my issue. I get a feeling this is a formatting error or a fundamental misunderstanding of how bash works.