Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darwin awk error / warning CFPropertyListCreateFromXMLData #307477

Open
n8henrie opened this issue Apr 28, 2024 · 0 comments
Open

darwin awk error / warning CFPropertyListCreateFromXMLData #307477

n8henrie opened this issue Apr 28, 2024 · 0 comments
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin

Comments

@n8henrie
Copy link
Contributor

Describe the bug

I'm seeing an unusual error when using OFS = FS with GNU awk on aarch64-darwin (no such issue on x86_64-linux).

2024-04-28 07:52:50.450 awk[61732:72598624] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

It initially came up when sourcing this bash completion for skim upon opening a new shell in Alacritty: https://github.com/lotabout/skim/blob/291fc34c58b1670a5e8c95f1e8f930b82c030b19/shell/completion.bash#L52 -- I was able to narrow it down to the line awk -F= '{OFS = FS}' line.

I was able to make an MRE:

#!/run/current-system/sw/bin/nix-shell
#!nix-shell -I nixpkgs=flake:github:nixos/nixpkgs/2b1f64b358f2cab62617f26b3870fd0ee375d848
#!nix-shell -i bash -p bash --pure

true | awk -F= '{OFS = FS}'

Running it on aarch64-darwin shows:

$ ./mre.sh
2024-04-28 07:57:24.455 awk[64319:72647290] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
2024-04-28 07:57:24.455 awk[64319:72647290] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

Simply adding a semicolon: ('{OFS = FS;}') makes this go away:

$ ./mre.sh
$ echo $?
0

I have no idea why it's complaining about a plist parser. Any of the @NixOS/darwin-maintainers know why this would happen?

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-info -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.4.0, macOS 14.4.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.4`
 - channels(n8henrie): `""`
 - channels(root): `""`
 - nixpkgs: `/nix/store/xqn0rqq0is1kvgj9q57lz29k5nrf587h-source`

Add a 👍 reaction to issues you find important.

@eclairevoyant eclairevoyant added the 6.topic: darwin Running or building packages on Darwin label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

2 participants