On 01/16/2019, at 19:03, Dave <[email protected] 
<mailto:[email protected]>> wrote:
> Thanks, Chris. I've always used that literal newline inside single quotes in 
> scripts and the command-line, but people think there's something wrong when 
> they see that continuation prompt. 


Hey Dave,

The specific point is that the script does everything.  The user only has to 
provide the text file with the directory list.

On the other hand I do prefer to use a token for a newline character, because 
it reads more clearly for me.

oldIFS=$IFS; IFS=$'\n'; mkdir `cat ~/Downloads/test.txt`; IFS=$oldIFS

In this case Bash 4.4.23 on macOS Sierra 10.12.6 won't convert a double-quoted 
string into a newline for the IFS parameter, so I had to resort to using a C 
string.

--
Take Care,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to