On 02/10/2019, at 08:48, @lbutlr <[email protected] <mailto:[email protected]>> 
wrote:
>> These work, but they change the working directory.
> 
> Yes, I thought that was what you wanted.
> 
>> The whole purpose of my request was to provide a means of opening the 
>> worksheet to a specific directory without changing the working directory.
> 
> Um, Ok, what? They change the working directory *for BBEdit*.


Hey Lewis,

Eh?  You're right.  (I thought I tested better than that...)

Okay, please educate me.

Why does the parenthetic isolation of the command NOT change the working 
directory of the shell?

If you remove the parentheses the shell's working directory is changed.

> I couldn't think of a use for putting the list of files of a directory into a 
> shell worksheet and not changing BBEdit to that directory, but if that is 
> useful, this does that.
> 
> ls -l ~/Downloads | bbedit -s

The `ls` command was simply a demo Rich provided to push text into the 
worksheet.

> ls -l ~/Downloads | bbedit -s
> 
> will dump the list of files in ~/Downloads into bbedit and not change 
> directory.

You mean of the shell?

Quite right.

>> For that matter bbedit -s does NOT work unless text is piped to it.
> 
> bbedit -s .
> 
> When the BBEdit man page says "the specified files" for a flag, it means that 
> a file is required. (FSVO of the word file)

Oh?

Try:

bbedit -s 'What file is required?'

--
Best Regards,
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