Project

General

Profile

Feature #10603

Handle -c commands with arguments in rc.initial

Added by Emanuel Rietveld 4 months ago. Updated 4 months ago.

Status:
Feedback
Priority:
Normal
Category:
Console Menu
Target version:
Start date:
05/27/2020
Due date:
% Done:

100%

Estimated time:

Description

Following #4422 rc.initial now handles a -c parameter consisting of a single command with no arguments.

With this change, it also handles commands with arguments.
Ansible for example makes use of complex commands, and with this change it works even if the shell is set to rc.initial

Before

$ ssh -t admin@pfsense echo with arguments
  1. Blank line

After

$ ssh -t admin@pfsense echo with arguments
with arguments

Associated revisions

Revision 0cf9ffc2 (diff)
Added by Emanuel Rietveld 4 months ago

rc.initial: handle -c command with arguments

before this change rc.initial only passes the first -c parameter.
instead passing every parameter allows you to run complex commands
over ssh even if the shell is set to /etc/rc.initial

implements #10603

History

#3 Updated by Jim Pingle 4 months ago

  • Category set to Console Menu
  • Target version set to 2.5.0

#4 Updated by Jim Pingle 4 months ago

  • Status changed from New to Pull Request Review

#5 Updated by Renato Botelho 4 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Also available in: Atom PDF