emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org tangle ignores :dir header arg [9.6.6 ( @ /home/me/.config/emacs/elpa/org-9.6.6/)]
@ 2023-06-20 11:48 A Z
  2023-06-30 12:07 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: A Z @ 2023-06-20 11:48 UTC (permalink / raw)
  To: emacs-orgmode

hello all :)

is this a bug the way that the src block ignores the :dir args?
#+PROPERTY: header-args :dir "/sudo::/" :results drawer
#+begin_src conf :tangle /require-root
  test :)
#+end_src

`emacs -Q`; C-c C-c on the property line; C-u C-c C-v C-t on
the src line; permission denied.

Emacs  : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0)
 of 2022-05-31
Package: Org mode version 9.6.6 ( @ /home/me/.config/emacs/elpa/org-9.6.6/)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] org tangle ignores :dir header arg [9.6.6 ( @ /home/me/.config/emacs/elpa/org-9.6.6/)]
  2023-06-20 11:48 [BUG] org tangle ignores :dir header arg [9.6.6 ( @ /home/me/.config/emacs/elpa/org-9.6.6/)] A Z
@ 2023-06-30 12:07 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-06-30 12:07 UTC (permalink / raw)
  To: A Z; +Cc: emacs-orgmode

A Z <mksybr@gmail.com> writes:

> is this a bug the way that the src block ignores the :dir args?
> #+PROPERTY: header-args :dir "/sudo::/" :results drawer
> #+begin_src conf :tangle /require-root
>   test :)
> #+end_src
>
> `emacs -Q`; C-c C-c on the property line; C-u C-c C-v C-t on
> the src line; permission denied.

:dir header arg only applies to block evaluation, not to tangling.

16.4 Environment of a Code Block

    The ‘dir’ header argument specifies the default directory during code
    block execution. ...

Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-30 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-20 11:48 [BUG] org tangle ignores :dir header arg [9.6.6 ( @ /home/me/.config/emacs/elpa/org-9.6.6/)] A Z
2023-06-30 12:07 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).