Jason McIntyre writes:
> On Sun, Jan 02, 2022 at 11:47:04PM +0100, ?????? wrote:
> > On Sun, Jan 02, 2022 at 06:56:37PM +0000, Jason McIntyre wrote:
> > > On Sat, Jan 01, 2022 at 11:07:49PM +0100, ?????? wrote:
> > > > -To run a command with arguments, enclose both in quotes.
> > > why do you want to remove this line? the page is short, and it might
> > > help someone.
> > Because the value for -c is a *shell script*, not a command ???
>
> i don;t follow. you can run:
>
> $ script -c ls
>
> i.e. a command, not a shell script/
Actually the shell doesn't care what it is and will just as happily
expand a built-on or an alias. All words are expanded equally.
If you did want to change the wording, which I don't think is
necessary, it would be better to make that link more explicit rather
than muddying the waters further---"The _command_ argument is
executed with 'sh -c _command_' instead of ..." or some such---but
that's arguably more not less confusing and would only be useful
if this was a rare or unusual thing to do when in fact the opposite
is true.
Matthew
No comments:
Post a Comment