pet icon indicating copy to clipboard operation
pet copied to clipboard

Replace sh with bash

Open jza34 opened this issue 5 years ago • 2 comments

Hi, I get some sh errors with some of my snippets...How to configure pet to execute theses snippets with bash? Example : a snippet with the source command (only known by bash) Thanks!

jza34 avatar Jan 03 '20 14:01 jza34

Pet should read SHELL and execute with that. Though bash is slower to start. Maybe allow users to put a PET_SHELL=$SHELL in their profiles.

brandonkal avatar Mar 18 '20 13:03 brandonkal

The source built-in command is just an alias to the . built-in command. The dot built-in command is a POSIX requirement for any sh implementation, so it'll be more ubiquitous than source.

dariuskramer avatar May 07 '20 06:05 dariuskramer

Hey @jza34 , source works fine for me using sh though.

I like this suggestion however @brandonkal , will add this as an improvement. Should be easy to implement as well!

RamiAwar avatar Feb 20 '24 10:02 RamiAwar