Search Results

Search: Posts Made By: jamesbor
1,332
Posted By jamesbor
Think your right...
When I do

A="$( echo -e "\nb\nc\nd\n" )"
set | grep ^A
A=$'\nb\nc\nd'


So, it does look as if the command substitution strips the whitespace at the end. Many thanks for clearing this up!!...
1,332
Posted By jamesbor
Loosing trailing new line in Bash var assignment
I have come across a weird behaviour in bash and would love to get to the bottom of it. If I execute echo -e "\na\nb\nc\n" at the command line, I get:


a
b
c

However, if I wrap it in an...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy