<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23459">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pySim-shell: output currently selected file using select command<br><br>When the select command is entered with no parameters it fails with an<br>exception. Lets just output the currently selected file and exit<br>instead.<br><br>Change-Id: I541bd5ed14f240cd1c2bd63647c830f669d26130<br>Related: OS#4963<br>---<br>M pySim-shell.py<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/59/23459/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim-shell.py b/pySim-shell.py</span><br><span>index 45b4095..2943cd9 100755</span><br><span>--- a/pySim-shell.py</span><br><span>+++ b/pySim-shell.py</span><br><span>@@ -100,6 +100,12 @@</span><br><span> </span><br><span>         def do_select(self, opts):</span><br><span>           """SELECT a File (ADF/DF/EF)"""</span><br><span style="color: hsl(120, 100%, 40%);">+         if len(opts.arg_list) == 0:</span><br><span style="color: hsl(120, 100%, 40%);">+                   path_list = self._cmd.rs.selected_file.fully_qualified_path(True)</span><br><span style="color: hsl(120, 100%, 40%);">+                     path_list_fid = self._cmd.rs.selected_file.fully_qualified_path(False)</span><br><span style="color: hsl(120, 100%, 40%);">+                        self._cmd.poutput("currently selected file: " + '/'.join(path_list) + " (" + '/'.join(path_list_fid) + ")")</span><br><span style="color: hsl(120, 100%, 40%);">+                     return</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>             path = opts.arg_list[0]</span><br><span>              fcp_dec = self._cmd.rs.select(path, self._cmd)</span><br><span>               self._cmd.update_prompt()</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23459">change 23459</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23459"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I541bd5ed14f240cd1c2bd63647c830f669d26130 </div>
<div style="display:none"> Gerrit-Change-Number: 23459 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>