View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007276 | Dwarf Fortress | Technical -- General | public | 2014-07-14 07:28 | 2014-08-20 12:10 |
Reporter | ChoHag | Assigned To | |||
Priority | none | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | duplicate | ||
Platform | Linux | ||||
Product Version | 0.40.03 | ||||
Summary | 0007276: Worldgen arguments are not passed on correctly from the df script | ||||
Description | $* expands spaces in arguments, so this command: ./df -gen 1 RANDOM "MEDIUM ISLAND" Ends up running this: ./libs/Dwarf_Fortress "-gen" "1" "RANDOM" "MEDIUM" "ISLAND" Or from gamelog.txt: *** STARTING NEW GAME *** Command Line: -gen "1" "RANDOM" "MEDIUM" "ISLAND" Command Line: World generation initiated. Command Line: World generation parameter set MEDIUM not found -- using default. Generating world using parameter set MEDIUM ISLAND | ||||
Additional Information | The fix is as trivial as the problem: Change $* to "$@" (with quotes) so the whole file reads: #!/bin/sh DF_DIR=$(dirname "$0") cd "${DF_DIR}" export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch. #export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing. ./libs/Dwarf_Fortress "$@" # Go, go, go! :) | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-07-14 07:28 | ChoHag | New Issue | |
2014-07-14 08:59 |
|
Summary | Arguments are not passed on correctly from the df script => Worldgen arguments are not passed on correctly from the df script |
2014-08-20 11:13 | BenLubar | Note Added: 0029366 | |
2014-08-20 12:10 |
|
Relationship added | duplicate of 0006394 |
2014-08-20 12:10 |
|
Status | new => resolved |
2014-08-20 12:10 |
|
Resolution | open => duplicate |
2014-08-20 12:10 |
|
Assigned To | => user6 |