Hiya Panayotis,

Fish uses (..) instead of `..` for command substitution. Try this: 

> gpg --detach-sign --armor --passphrase (security find-generic-password -a 
> $USER -s crosssign -w) (mktemp)

Cheers, Bram


On Tue, 19 Feb 2019, at 11:57 AM, Panayotis Katsaloulis wrote:
> Hello! 
> 
> I am in the process of (finally fully) migrating from bash to fish, and I 
> love it so much!
> There’s only one command that it is missing and I don’t know how to overcome 
> this problem.
> I am in OSX (Mojava) and installed latest fish through homebrew.
> 
> In bash I run this command, in my script, in order to pre-load the gpg signed 
> key:
> 
> gpg --detach-sign --armor --passphrase `security find-generic-password -a 
> $USER -s crosssign -w` `mktemp`
> 
> Under bash, I got this message:
> gpg: using "A4C26106" as default secret key for signing


> 


> While under fish I get this message:


> gpg: using "A4C26106" as default secret key for signing


> gpg: can't open 'find-generic-password': No such file or directory


> 


> gpg: signing failed: No such file or directory


> 


> Any idea why this happens?


> 
> 
> 
> 
> 
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
> 
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to