Get WordShell conf file location

Home Forums Community forum Get WordShell conf file location

This topic contains 4 replies, has 2 voices, and was last updated by  wpnetnz 10 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1516

    wpnetnz
    Participant

    Hi,

    I’m doing some BASH scripting with WordShell, I want a way to get the config file path for WordShell, but this doesn’t work:

    wordshell –debug –workdir
    ABORT: ERROR: Unknown option: –workdir
    DEBUG: WordShell internal abort code: 40

    What’s the easiest way to get the working directory path (~/.wordshell) and conf file (~/.wordshell/rc)?

    Thanks.

    #1517

    WordShell.Net
    Keymaster

    Hi,

    It’s configured in the configuration section at the top of the wordshell script. Unless it’s been changed, it detaults to $HOME/.wordshell, and the configuration file to $HOME/.wordshell/rc.

    David

    #1518

    wpnetnz
    Participant

    Hi,

    Thanks, I get that, but what I wanted to do was write get the wordir dynamically from wordshell something like:

    WORKING_DIR=”$(wordshell –workdir –debug)/rc”

    CONFIG_FILE=”${WORKING_DIR}/rc”

    because I can’t be sure my script will “know” where is conf file is.

    #1519

    WordShell.Net
    Keymaster

    Hi,

    I’m not sure I see the point of this – in the 4-ish years of WordShell, the default configuration directory has never been anything other than $HOME/.wordshell, and I doubt it’ll change. (And it’s user-configurable anyway, so you’d know if you changed it for your setup). So, this option would just ultimately be a time-consuming way of doing “echo $HOME/.wordshell”.

    David

    #1520

    wpnetnz
    Participant

    OK, I’ll use $HOME/.wordshell

    Thanks for your help.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Posted in

Tax country

Taxes will be calculated using the country you choose here.

Cart

Meta

  • Your profile

Recent Comments