[Bug 3622] New: Please add an option to generate fish shell output

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Oct 6 12:33:39 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3622

            Bug ID: 3622
           Summary: Please add an option to generate fish shell output
           Product: Portable OpenSSH
           Version: 9.5p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-agent
          Assignee: unassigned-bugs at mindrot.org
          Reporter: kemelzaidan at gmail.com

Please, add an argument (maybe -f since it's not in use) to generate
fish shell commands to the stdout just like there are options for C
shell and Bash.

Fish shell sets variable with the set command. -x for export and -g for
global scope, so you would need:

```sh
set -xg SSH_AUTH_SOCK /tmp/ssh-XXXXXXKjJOVJ/agent.199681
set-xg SSH_AGENT_PID 199682
echo Agent pid 199682
```
To unset the variables, use the -e flag like:

set -e SSH_AUTH_SOCK

You can take a look in the fish shell documentation here:
https://fishshell.com/docs/current/cmds/set.html

Thanks,

Kemel Zaidan

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list