Project

General

Profile

Bug #4915

-preferences command line parameter is unable to expand ~ to home on Fedora 21

Added by Jesse Mapel 6 months ago. Updated 5 months ago.

Status:
Rejected
Priority:
Normal
Category:
Applications
Target version:
-
Impact:
Software Version:
Test Reviewer:

Description

When using the =preferences option to use a specific preferences file in ~/.Isis, I received a user error message stating that the file did not exist. When I instead replaced ~ with the actual path to my home directory, it worked. This is on Fedora 21.

Error input:

spiceinit from=FC21B0006301_11236134529F1B-EMBREE.cub shape=user model=/work/projects/workshops/IsisWorkshops/External/OSIRIS-REx/March2016/IsisWorkshop/Lessons/ShapeModels/vesta512.bds extra=/work/projects/workshops/IsisWorkshops/External/OSIRIS-REx/March2016/IsisWorkshop/Lessons/ShapeModels/dawn_vesta_v06.tpc -preference=~/.Isis/IsisPreferences_embree

Error message:

**USER ERROR** The preference file ~/.Isis/IsisPreferences_embree was not found or does not exist.

Working input:

spiceinit from=FC21B0006301_11236134529F1B-EMBREE.cub shape=user model=/work/projects/workshops/IsisWorkshops/External/OSIRIS-REx/March2016/IsisWorkshop/Lessons/ShapeModels/vesta512.bds extra=/work/projects/workshops/IsisWorkshops/External/OSIRIS-REx/March2016/IsisWorkshop/Lessons/ShapeModels/dawn_vesta_v06.tpc -preference=/home/jmapel/.Isis/IsisPreferences_embree

History

#1 Updated by Jesse Mapel 6 months ago

  • Description updated (diff)

#2 Updated by Jesse Mapel 6 months ago

  • Description updated (diff)

#3 Updated by Tammy Becker 6 months ago

  • Status changed from New to Acknowledged

#5 Updated by Stuart Sides 5 months ago

  • Status changed from Acknowledged to Assigned
  • Assignee set to Summer Stapleton

#6 Updated by Summer Stapleton 5 months ago

  • Status changed from Assigned to Resolved

Hi Jesse!

So tilde is a special character read and processed by most shell environments, but not by ISIS3.

In the command you entered, it looks like shell is reading the entire parameter as one long string - passing-up the tilde entirely. By adding a simple space in between the equal sign and your path in the terminal window, shell will recognize the tilde and expand it to your home directory. An example would be:

lowpass from= ~/Project1/input.cub to= ~/Project1/output.cub -preference= ~/.Isis/IsisPreferences_project1

Note that a space will need to be included every time you wish to include tilde at the beginning of a file name parameter for ISIS3. Let me know if this doesn't fix your issue!

#7 Updated by Summer Stapleton 5 months ago

  • Status changed from Resolved to Rejected

Rejected because this is a feature of the user's shell, not ISIS3.

Also available in: Atom PDF